コード例 #1
0
ファイル: ModuleDefinition.cs プロジェクト: xyz91/EasyAop
 public TypeDefinition GetType(string fullName)
 {
     Mixin.CheckFullName(fullName);
     if (fullName.IndexOf('/') > 0)
     {
         return(GetNestedType(fullName));
     }
     return(((TypeDefinitionCollection)Types).GetType(fullName));
 }
コード例 #2
0
ファイル: ModuleDefinition.cs プロジェクト: xyz91/EasyAop
 public bool HasTypeReference(string scope, string fullName)
 {
     Mixin.CheckFullName(fullName);
     if (!HasImage)
     {
         return(false);
     }
     return(GetTypeReference(scope, fullName) != null);
 }
コード例 #3
0
ファイル: ModuleDefinition.cs プロジェクト: xyz91/EasyAop
 public bool TryGetTypeReference(string scope, string fullName, out TypeReference type)
 {
     Mixin.CheckFullName(fullName);
     if (!HasImage)
     {
         type = null;
         return(false);
     }
     return((type = GetTypeReference(scope, fullName)) != null);
 }