Added some read-only attributes to the cloner implementations

git-svn-id: file:///srv/devel/repo-conversion/nusu@266 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2012-03-06 13:45:33 +00:00
parent 21754b8e87
commit f3652ac4db
3 changed files with 15 additions and 8 deletions

View file

@ -263,13 +263,21 @@ namespace Nuclex.Support.Cloning {
}
/// <summary>Compiled cloners that perform shallow clone operations</summary>
private static ConcurrentDictionary<Type, Func<object, object>> shallowFieldBasedCloners;
private static readonly ConcurrentDictionary<
Type, Func<object, object>
> shallowFieldBasedCloners;
/// <summary>Compiled cloners that perform deep clone operations</summary>
private static ConcurrentDictionary<Type, Func<object, object>> deepFieldBasedCloners;
private static readonly ConcurrentDictionary<
Type, Func<object, object>
> deepFieldBasedCloners;
/// <summary>Compiled cloners that perform shallow clone operations</summary>
private static ConcurrentDictionary<Type, Func<object, object>> shallowPropertyBasedCloners;
private static readonly ConcurrentDictionary<
Type, Func<object, object>
> shallowPropertyBasedCloners;
/// <summary>Compiled cloners that perform deep clone operations</summary>
private static ConcurrentDictionary<Type, Func<object, object>> deepPropertyBasedCloners;
private static readonly ConcurrentDictionary<
Type, Func<object, object>
> deepPropertyBasedCloners;
}