protected override void OnPropertyDeserialized(string name, object value) { if (name == "className") { ClassName = (string)value; } else if (name == "superclassName") { SuperclassName = (string)value; } else if (name == "actions") { Actions = (NSMutableDictionary)value; } else if (name == "outlets") { Outlets = (NSMutableDictionary)value; } else if (name == "sourceIdentifier") { SourceIdentifier = new Unref <IBClassDescriptionSource> (value); } else if (name == "toOneOutletInfosByName") { ToOneOutletInfosByName = (NSMutableDictionary)value; } else { base.OnPropertyDeserialized(name, value); } }
protected override void OnPropertyDeserialized(string name, object value, IReferenceResolver resolver) { if (EncodedWithXMLCoder) { if (name == "dict.sortedKeys") { sortedKeys = new Unref <NSArray> (value); } else if (name == "dict.values") { values = new Unref <NSArray> (value); } else { base.OnPropertyDeserialized(name, value, resolver); } } else { if (nonCoderKeys == null) { nonCoderKeys = new List <object> (); dict = new Dictionary <object, object> (); } if (name.StartsWith("NS.key.")) { int idx = Int32.Parse(name.Substring("NS.key.".Length)); while (nonCoderKeys.Count <= idx) { nonCoderKeys.Add(null); } nonCoderKeys[idx] = value; } else if (name.StartsWith("NS.object.")) { int idx = Int32.Parse(name.Substring("NS.object.".Length)); dict[nonCoderKeys[idx]] = value; } else { base.OnPropertyDeserialized(name, value, resolver); } } }
protected override void OnPropertyDeserialized(string name, object value, IReferenceResolver resolver) { switch (name) { case "className": ClassName = (string)value; break; case "superclassName": SuperclassName = (string)value; break; case "actions": Actions = (NSMutableDictionary)value; break; case "outlets": Outlets = (NSMutableDictionary)value; break; case "sourceIdentifier": SourceIdentifier = new Unref <IBClassDescriptionSource> (value); break; case "toOneOutletInfosByName": ToOneOutletInfosByName = (NSMutableDictionary)value; break; case "actionInfosByName": ActionInfosByName = (NSMutableDictionary)value; break; default: base.OnPropertyDeserialized(name, value, resolver); break; } }