System.Runtime.Serialization.XmlReaderDelegator.XmlReaderDelegator.CreateInvalidPrimitiveTypeException C# (CSharp) Method

CreateInvalidPrimitiveTypeException() private method

private CreateInvalidPrimitiveTypeException ( Type type ) : Exception
type Type
return Exception
        private Exception CreateInvalidPrimitiveTypeException(Type type)
        {
            return new InvalidDataContractException(SR.Format(
                type.IsInterface ? SR.InterfaceTypeCannotBeCreated : SR.InvalidPrimitiveType,
                DataContract.GetClrTypeFullName(type)));
        }
XmlReaderDelegator.XmlReaderDelegator