[Emitted] //RubyTypeBuilder
public static void SerializeObject(RubyInstanceData instanceData, RubyClass/*!*/ immediateClass, SerializationInfo/*!*/ info) {
info.AddValue(RubyUtils.SerializationInfoClassKey, immediateClass, typeof(RubyClass));
if (instanceData != null) {
string[] instanceNames = instanceData.GetInstanceVariableNames();
foreach (string name in instanceNames) {
object value;
if (!instanceData.TryGetInstanceVariable(name, out value)) {
value = null;
}
info.AddValue(name, value, typeof(object));
}
}
}