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

ReadId() private method

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