public static IBObject GetInstance(IDictionary <String, String> attributes) { IBObject obj; switch (attributes["class"]) { case "NSArray": case "NSMutableArray": obj = new IBArray(attributes); break; case "NSDictionary": case "NSMutableDictionary": obj = new IBDictionary(attributes); break; case "IBClassDescriber": obj = new IBClassDescriber(attributes); break; case "IBPartialClassDescription": obj = new IBPartialClassDescription(attributes); break; case "NSSet": case "NSMutableSet": obj = new IBSet(attributes); break; default: obj = new IBObject(attributes); break; } return(obj); }
public static IBObject GetInstance(IDictionary<String, String> attributes) { IBObject obj; switch (attributes["class"]) { case "NSArray": case "NSMutableArray": obj = new IBArray(attributes); break; case "NSDictionary": case "NSMutableDictionary": obj = new IBDictionary(attributes); break; case "IBClassDescriber": obj = new IBClassDescriber(attributes); break; case "IBPartialClassDescription": obj = new IBPartialClassDescription(attributes); break; case "NSSet": case "NSMutableSet": obj = new IBSet(attributes); break; default: obj = new IBObject(attributes); break; } return obj; }