src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/Serializer.cs
/// <summary>
/// Add an error for invalid property value with given type.
/// </summary>
/// <param name="serializationContext">SerializationContext to add the error message to.</param>
/// <param name="reader">The reader pointing to where the message is raised.</param>
/// <param name="propertyName">Name of the property.</param>
/// <param name="propertyType">Type of the property.</param>
/// <param name="value">Invalid value that causes this error.</param>
Add an error for invalid property value with given type.
Add an error for invalid property value with given type .
public static void InvalidPropertyValue(DslModeling::SerializationContext serializationContext, global::System.Xml.XmlReader reader, string propertyName, global::System.Type propertyType, string value)
		{
			#region Check Parameters
			global::System.Diagnostics.Debug.Assert(serializationContext != null);
			if (serializationContext == null)
				throw new global::System.ArgumentNullException("serializationContext");
			global::System.Diagnostics.Debug.Assert(reader != null);
			if (reader == null)
				throw new global::System.ArgumentNullException("reader");
			global::System.Diagnostics.Debug.Assert(propertyType != null);
			if (propertyType == null)
				throw new global::System.ArgumentNullException("propertyType");
			global::System.Diagnostics.Debug.Assert(!string.IsNullOrEmpty(propertyName));
			if (string.IsNullOrEmpty(propertyName))
				throw new global::System.ArgumentNullException("propertyName");
			#endregion
			if (value == null)
				value = "<null>";
			DslModeling::SerializationUtilities.AddMessage(
				serializationContext,
				DslModeling::SerializationMessageKind.Error,
				string.Format(
					global::System.Globalization.CultureInfo.CurrentCulture,
					ResourceManager.GetString("InvalidPropertyValue"),
					value,
					propertyName,
					propertyType.Name
				),
				reader as global::System.Xml.IXmlLineInfo
			);
		}
public static void InvalidPropertyValue ( DslModeling :: SerializationContext serializationContext , global :: System . Xml . XmlReader reader , string propertyName , global :: System . Type propertyType , string value ) { region  Check Parameters global :: System . Diagnostics . Debug . Assert ( serializationContext != null ) ; if ( serializationContext == null ) throw new global :: System . ArgumentNullException ( " " ) ; global :: System . Diagnostics . Debug . Assert ( reader != null ) ; if ( reader == null ) throw new global :: System . ArgumentNullException ( " " ) ; global :: System . Diagnostics . Debug . Assert ( propertyType != null ) ; if ( propertyType == null ) throw new global :: System . ArgumentNullException ( " " ) ; global :: System . Diagnostics . Debug . Assert ( ! string . IsNullOrEmpty ( propertyName ) ) ; if ( string . IsNullOrEmpty ( propertyName ) ) throw new global :: System . ArgumentNullException ( " " ) ; endregion if ( value == null ) value = " " ; DslModeling :: SerializationUtilities . AddMessage ( serializationContext , DslModeling :: SerializationMessageKind . Error , string . Format ( global :: System . Globalization . CultureInfo . CurrentCulture , ResourceManager . GetString ( " " ) , value , propertyName , propertyType . Name ) , reader as global :: System . Xml . IXmlLineInfo ) ; }
Add an error for invalid property value with given type.
Add an error for invalid property value with given type .
serializationContext
DslModeling::SerializationContext
SerializationContext to add the error message to.
SerializationContext to add the error message to .
reader
global::System.Xml.XmlReader
The reader pointing to where the message is raised.
The reader pointing to where the message is raised .
propertyName
string
Name of the property.
Name of the property .
propertyType
global::System.Type
Type of the property.
Type of the property .
value
string
Invalid value that causes this error.
Invalid value that causes this error .