System.Xml.Xsl.Runtime.XmlExtensionFunction.GetClrType C# (CSharp) Method

GetClrType() private method

1. Map enumerations to the underlying integral type. 2. Throw an exception if the type is ByRef
private GetClrType ( Type clrType ) : Type
clrType System.Type
return System.Type
        private Type GetClrType(Type clrType) {
            if (clrType.IsEnum)
                return Enum.GetUnderlyingType(clrType);

            if (clrType.IsByRef)
                throw new XslTransformException(/*[XT_050]*/Res.XmlIl_ByRefType, this.namespaceUri, this.name);

            return clrType;
        }