示例#1
0
 private TypeMapping(Type aType)
 {
     this._type       = aType;
     this._classifier = ((this._type.IsClass || this._type.IsInterface) || this._type.IsEnum) || this._type.IsValueType;
     this._name       = TypeInfoHelper.GetTypeName(aType);
     this._bComplete  = false;
     this._bDelegate  = false;
     this._bModule    = false;
     if (this._type.IsClass)
     {
         foreach (object obj2 in this._type.GetCustomAttributes(false))
         {
             if (obj2.GetType().FullName == "Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute")
             {
                 this._bModule = true;
                 break;
             }
         }
     }
     _tabType.Add(aType, this);
     if (_tabCheck.Contains(TypeInfoHelper.GetTypeFullName(aType)))
     {
         if (LZ.Reverse.Info._bDebug)
         {
             LZ.Reverse.Info.Write(new string[] { "*** there are several classifiers \"{0}\"", this._type.FullName });
         }
     }
     else
     {
         _tabCheck.Add(TypeInfoHelper.GetTypeFullName(aType), this);
     }
 }
示例#2
0
 protected override bool Process(object anAttr)
 {
     if (TypeInfoHelper.GetTypeFullName(anAttr.GetType()) == "System.Runtime.CompilerServices.AccessedThroughPropertyAttribute")
     {
         this._through = true;
         return(true);
     }
     return(false);
 }
示例#3
0
 protected override bool Process(object anAttr)
 {
     if (TypeInfoHelper.GetTypeFullName(anAttr.GetType()) == "System.Reflection.DefaultMemberAttribute")
     {
         this._default = true;
         return(true);
     }
     return(false);
 }
 protected override bool Process(object anAttr)
 {
     if (TypeInfoHelper.GetTypeFullName(anAttr.GetType()) == "System.ParamArrayAttribute")
     {
         this._params = true;
         return(true);
     }
     return(false);
 }
        protected override bool Process(object anAttr)
        {
            switch (TypeInfoHelper.GetTypeFullName(anAttr.GetType()))
            {
            case "Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute":
                this._module = true;
                return(true);

            case "System.Reflection.DefaultMemberAttribute":
                this._default = true;
                return(true);
            }
            return(false);
        }