System.Runtime.Serialization.Attributes.ReadRef C# (CSharp) Method

ReadRef() private method

private ReadRef ( System.Runtime.Serialization.XmlReaderDelegator reader ) : void
reader System.Runtime.Serialization.XmlReaderDelegator
return void
        private void ReadRef(XmlReaderDelegator reader)
        {
            Ref = reader.ReadContentAsString();
            if (string.IsNullOrEmpty(Ref))
            {
                throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.Format(SR.InvalidXsRefDefinition, Ref)));
            }
        }