예제 #1
0
 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;
 }
 /// <summary>
 ///   Visits the specified item.
 /// </summary>
 /// <param Name = "item">The item.</param>
 public void Visit(IBDictionary item)
 {
 }
 /// <summary>
 ///   Visits the specified item.
 /// </summary>
 /// <param Name = "item">The item.</param>
 public void Visit(IBDictionary item)
 {
 }
예제 #4
0
 /// <summary>
 ///   Visits the specified item.
 /// </summary>
 /// <param Name = "item">The item.</param>
 public void Visit(IBDictionary item)
 {
     Console.WriteLine(item.ToString());
 }
예제 #5
0
 /// <summary>
 ///   Visits the specified item.
 /// </summary>
 /// <param Name = "item">The item.</param>
 public void Visit(IBDictionary item)
 {
     Console.WriteLine(item.ToString());
 }