Skip to content
This repository was archived by the owner on Dec 13, 2021. It is now read-only.

Commit 8fe0456

Browse files
committed
AttributedTypeResolver - removed the backing field
This is handled by the compiler.
1 parent 44129a6 commit 8fe0456

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/Our.Umbraco.Ditto/ComponentModel/ObjectResolution/AttributedTypeResolver.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,17 @@ private void Initialize(IEnumerable<Type> types, bool inherit = false)
3030
}
3131
}
3232

33-
private static AttributedTypeResolver<TAttribute> _resolver;
34-
3533
/// <summary>
3634
/// A static instance of the attributed type resolver.
3735
/// </summary>
38-
public static AttributedTypeResolver<TAttribute> Current
39-
{
40-
get { return _resolver; }
41-
set { _resolver = value; }
42-
}
36+
public static AttributedTypeResolver<TAttribute> Current { get; set; }
4337

4438
/// <summary>
4539
/// Returns true if the resolver instance is currently available.
4640
/// </summary>
4741
public static bool HasCurrent
4842
{
49-
get { return _resolver != null; }
43+
get { return Current != null; }
5044
}
5145

5246
/// <summary>

0 commit comments

Comments
 (0)