jyx2/Assets/Plugins/Easy Save 3/Scripts/Writers/ES3Writer.cs
/// <summary>Writes a private property to the writer. Note that this should only be called within an ES3Type.</summary>
/// <param name="name">The name of the property.</param>
/// <param name="objectContainingProperty">The object containing the property we want to write.</param>
Writes a private property to the writer. Note that this should only be called within an ES3Type.
Writes a private property to the writer . Note that this should only be called within an ES3Type .
public void WritePrivateProperty(string name, object objectContainingProperty)
	{
		var property = ES3Reflection.GetES3ReflectedProperty(objectContainingProperty.GetType(), name);
		if(property.IsNull)
			throw new MissingMemberException("A private property named "+ name + " does not exist in the type "+objectContainingProperty.GetType());
		WriteProperty(name, property.GetValue(objectContainingProperty), ES3TypeMgr.GetOrCreateES3Type(property.MemberType));
	}
public void WritePrivateProperty ( string name , object objectContainingProperty ) { var property = ES3Reflection . GetES3ReflectedProperty ( objectContainingProperty . GetType ( ) , name ) ; if ( property . IsNull ) throw new MissingMemberException ( " " + name + " " + objectContainingProperty . GetType ( ) ) ; WriteProperty ( name , property . GetValue ( objectContainingProperty ) , ES3TypeMgr . GetOrCreateES3Type ( property . MemberType ) ) ; }
Writes a private property to the writer.
Writes a private property to the writer .
name
string
The name of the property.
The name of the property .
objectContainingProperty
object
The object containing the property we want to write.
The object containing the property we want to write .