A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4using osu.Framework.Allocation;
5
6namespace osu.Framework.Testing.Dependencies
7{
8 /// <summary>
9 /// Used for internal <see cref="DependencyContainer"/> testing purposes.
10 /// </summary>
11 public class CachedNullableProvider
12 {
13 [Cached]
14 public int? CachedObject { get; private set; } = 5;
15
16 public void SetValue(int? value) => CachedObject = value;
17 }
18}