CacheAspect.Repository.CacheAttribute.GetTypeName C# (CSharp) Метод

GetTypeName() приватный Метод

Use reflection to get the object's type name.
If we're supporting non-generic repositories we need to identify the correct type name.
private GetTypeName ( Type type ) : string
type System.Type The object's type.
Результат string
        private string GetTypeName(Type type)
        {
            return ((type.UnderlyingSystemType).GenericTypeArguments.Any())
                ? ((type.UnderlyingSystemType).GenericTypeArguments[0]).Name
                : type.DeclaringType.Name;
        }