Esempio n. 1
0
 static void Add(DmdTypeName typeName, DmdWellKnownType wellKnownType)
 {
     Debug.Assert(wellKnownType != DmdWellKnownType.None);
     toWellKnownType.Add(typeName, wellKnownType);
     toWellKnownTypeName[(int)wellKnownType] = typeName;
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the well known type
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="wellKnownType">Updated with well known type if successful</param>
 /// <returns></returns>
 public static bool TryGetWellKnownType(DmdTypeName name, out DmdWellKnownType wellKnownType) =>
 toWellKnownType.TryGetValue(name, out wellKnownType);