Beispiel #1
0
 private IEnumerable <UnityType> GetBaseUnityTypes(UnityTypes types, ITypeElement type, Version normalisedVersion)
 {
     return(types.Types.Where(t =>
     {
         using (CompilationContextCookie.GetExplicitUniversalContextIfNotSet())
             return t.SupportsVersion(normalisedVersion) && type.IsDescendantOf(t.GetTypeElement(type.Module));
     }));
 }
Beispiel #2
0
 private IEnumerable <UnityType> GetBaseUnityTypes(UnityTypes types, ITypeElement type, Version normalisedVersion)
 {
     return(types.Types.Where(t => t.SupportsVersion(normalisedVersion) && type.IsDescendantOf(t.GetTypeElement(type.Module))));
 }