예제 #1
0
        private static Type GetClrType(EdmType objectSpaceType)
        {
            Type clrType;

            if (!ObjectItemCollection.TryGetClrType(objectSpaceType, out clrType))
            {
                throw new ArgumentException(Strings.FailedToFindClrTypeMapping((object)objectSpaceType.Identity));
            }
            return(clrType);
        }
예제 #2
0
 public bool TryGetClrType(EnumType objectSpaceType, out Type clrType)
 {
     return(ObjectItemCollection.TryGetClrType((EdmType)objectSpaceType, out clrType));
 }