Source/NFX/GuidTypeResolver.cs
/// <summary>
/// Returns TypeGuidAttribute for a type encapsulated in guid.
/// If type is not decorated by the attribute then exception is thrown
/// </summary>
Returns TypeGuidAttribute for a type encapsulated in guid.
If type is not decorated by the attribute then exception is thrown
Returns TypeGuidAttribute for a type encapsulated in guid . If type is not decorated by the attribute then exception is thrown
public static A GetGuidTypeAttribute<T, A>(Guid guid, IGuidTypeResolver resolver) where A : GuidTypeAttribute
    {
      if (resolver == null)
        throw new NFXException(StringConsts.ARGUMENT_ERROR + typeof(A).FullName + ".GetGuidTypeAttribute(resolver==null)");
      var type = resolver.Resolve(guid);
      return GetGuidTypeAttribute<T, A>(type);
    }
public static A GetGuidTypeAttribute < T , A > ( Guid guid , IGuidTypeResolver resolver ) where A : GuidTypeAttribute { if ( resolver == null ) throw new NFXException ( StringConsts . ARGUMENT_ERROR + typeof ( A ) . FullName + " " ) ; var type = resolver . Resolve ( guid ) ; return GetGuidTypeAttribute < T , A > ( type ) ; }
Returns TypeGuidAttribute for a type encapsulated in guid.
Returns TypeGuidAttribute for a type encapsulated in guid .
guid
Guid
resolver
IGuidTypeResolver