src/Shared/EntityFramework/Core/Metadata/Edm/ObjectItemCollection.cs
// <summary>
// A helper method returning the underlying CLR type for the specified OSpace Enum or Structural type argument.
// If the DataSpace of the parameter is not OSpace, an ArgumentException is thrown.
// </summary>
// <param name="objectSpaceType"> The OSpace type to look up </param>
// <returns> The CLR type of the OSpace argument </returns>
A helper method returning the underlying CLR type for the specified OSpace Enum or Structural type argument.
If the DataSpace of the parameter is not OSpace, an ArgumentException is thrown.
A helper method returning the underlying CLR type for the specified OSpace Enum or Structural type argument . If the DataSpace of the parameter is not OSpace an ArgumentException is thrown .
private static Type GetClrType(EdmType objectSpaceType)
        {
            Debug.Assert(
                objectSpaceType == null || objectSpaceType is StructuralType || objectSpaceType is EnumType,
                "Only enum or structural type expected");
            Type clrType;
            if (!TryGetClrType(objectSpaceType, out clrType))
            {
                throw new ArgumentException(Strings.FailedToFindClrTypeMapping(objectSpaceType.Identity));
            }
            return clrType;
        }
private static Type GetClrType ( EdmType objectSpaceType ) { Debug . Assert ( objectSpaceType == null || objectSpaceType is StructuralType || objectSpaceType is EnumType , " " ) ; Type clrType ; if ( ! TryGetClrType ( objectSpaceType , out clrType ) ) { throw new ArgumentException ( Strings . FailedToFindClrTypeMapping ( objectSpaceType . Identity ) ) ; } return clrType ; }
A helper method returning the underlying CLR type for the specified OSpace Enum or Structural type argument.
A helper method returning the underlying CLR type for the specified OSpace Enum or Structural type argument .
The CLR type of the OSpace argument
The CLR type of the OSpace argument
objectSpaceType
EdmType
The OSpace type to look up
The OSpace type to look up