Beispiel #1
0
 public void TypeParsed(Type type)
 {
     if (WaitForTypeDictionary.ContainsKey(type.FullName))
     {
         foreach (var t in WaitForTypeDictionary[type.FullName])
         {
             t.Parsed();
         }
     }
 }
Beispiel #2
0
            public WaitForType(TypeBuilder newType, string fieldTypeName, string waitName, string fieldName, bool isProperty = false)
            {
                IsProperty    = isProperty;
                NewType       = newType;
                FieldTypeName = fieldTypeName;
                FieldName     = fieldName;
                WaitName      = waitName;

                if (!DynamicTypes.TypeParsed.ContainsKey(waitName))
                {
                    DynamicTypes.TypeParsed.Add(waitName, TypeParsed);
                }
                if (!WaitForTypeDictionary.ContainsKey(waitName))
                {
                    WaitForTypeDictionary.Add(waitName, new List <WaitForType>());
                }

                WaitForTypeDictionary[waitName].Add(this);
            }