src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/Serializer.cs
/// <summary>
/// Public Read() method that deserializes one NavigationProperty instance from XML.
/// </summary>
/// <remarks>
/// When this method is called, caller guarantees that the passed-in XML reader is positioned at the open XML tag
/// of the NavigationProperty element that is about to be deserialized. 
/// The method needs to ensure that when it returns, the reader is positioned at the open XML tag of the next sibling element,
/// or the close tag of the parent element (or EOF).
/// </remarks>
/// <param name="serializationContext">Serialization context.</param>
/// <param name="element">In-memory NavigationProperty instance that will get the deserialized data.</param>
/// <param name="reader">XmlReader to read serialized data from.</param>
Public Read() method that deserializes one NavigationProperty instance from XML.
Public Read () method that deserializes one NavigationProperty instance from XML .
public override void Read(DslModeling::SerializationContext serializationContext, DslModeling::ModelElement element, global::System.Xml.XmlReader reader)
		{
			#region Check Parameters
			global::System.Diagnostics.Debug.Assert (serializationContext != null);
			if (serializationContext == null)
				throw new global::System.ArgumentNullException ("serializationContext");
			global::System.Diagnostics.Debug.Assert (element != null);
			if (element == null)
				throw new global::System.ArgumentNullException ("element");
			global::System.Diagnostics.Debug.Assert (reader != null);
			if (reader == null)
				throw new global::System.ArgumentNullException ("reader");
			#endregion
			base.ReadPropertiesFromAttributes(serializationContext, element, reader);
			if (!serializationContext.Result.Failed)
			{
				if (!reader.IsEmptyElement)
				{
					DslModeling::SerializationUtilities.SkipToFirstChild(reader);
					ReadAdditionalElementData(serializationContext, element, reader);
					while (!serializationContext.Result.Failed && !reader.EOF && reader.NodeType == global::System.Xml.XmlNodeType.Element)
					{
						base.ReadElements(serializationContext, element, reader);
						if (!serializationContext.Result.Failed && !reader.EOF && reader.NodeType == global::System.Xml.XmlNodeType.Element)
						{
							MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages.UnexpectedXmlElement(serializationContext, reader);
							DslModeling::SerializationUtilities.Skip(reader);
						}
					}
				}
			}
			DslModeling::SerializationUtilities.Skip(reader);
		}
public override void Read ( DslModeling :: SerializationContext serializationContext , DslModeling :: ModelElement element , global :: System . Xml . XmlReader reader ) { region  Check Parameters global :: System . Diagnostics . Debug . Assert ( serializationContext != null ) ; if ( serializationContext == null ) throw new global :: System . ArgumentNullException ( " " ) ; global :: System . Diagnostics . Debug . Assert ( element != null ) ; if ( element == null ) throw new global :: System . ArgumentNullException ( " " ) ; global :: System . Diagnostics . Debug . Assert ( reader != null ) ; if ( reader == null ) throw new global :: System . ArgumentNullException ( " " ) ; endregion base . ReadPropertiesFromAttributes ( serializationContext , element , reader ) ; if ( ! serializationContext . Result . Failed ) { if ( ! reader . IsEmptyElement ) { DslModeling :: SerializationUtilities . SkipToFirstChild ( reader ) ; ReadAdditionalElementData ( serializationContext , element , reader ) ; while ( ! serializationContext . Result . Failed && ! reader . EOF && reader . NodeType == global :: System . Xml . XmlNodeType . Element ) { base . ReadElements ( serializationContext , element , reader ) ; if ( ! serializationContext . Result . Failed && ! reader . EOF && reader . NodeType == global :: System . Xml . XmlNodeType . Element ) { MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages . UnexpectedXmlElement ( serializationContext , reader ) ; DslModeling :: SerializationUtilities . Skip ( reader ) ; } } } } DslModeling :: SerializationUtilities . Skip ( reader ) ; }
Public Read() method that deserializes one NavigationProperty instance from XML.
Public Read () method that deserializes one NavigationProperty instance from XML .
// Read properties serialized as XML attributes. // Read nested XML elements. // Read to the start of the first child element. // Read any additional element data under this XML element // Read nested XML elements, they can be either properties serialized as XML elements, or child  // model elements. // Encountered one unknown XML element, skip it and keep reading. // Advance the reader to the next element (open tag of the next sibling, end tag of the parent, or EOF)
serializationContext
DslModeling::SerializationContext
None
element
DslModeling::ModelElement
In-memory NavigationProperty instance that will get the deserialized data.
In - memory NavigationProperty instance that will get the deserialized data .
reader
global::System.Xml.XmlReader
XmlReader to read serialized data from.
XmlReader to read serialized data from .
remarks
When this method is called, caller guarantees that the passed-in XML reader is positioned at the open XML tag
of the NavigationProperty element that is about to be deserialized.
The method needs to ensure that when it returns, the reader is positioned at the open XML tag of the next sibling element,
or the close tag of the parent element (or EOF).
When this method is called caller guarantees that the passed - in XML reader is positioned at the open XML tag of the NavigationProperty element that is about to be deserialized . The method needs to ensure that when it returns the reader is positioned at the open XML tag of the next sibling element or the close tag of the parent element ( or EOF ) .