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