Beispiel #1
0
            /// <summary>
            /// 创建代码
            /// </summary>
            /// <param name="type"></param>
            /// <param name="methodIndexs"></param>
            public void Create(auto.parameter parameter, memberType type, methodIndex[] methodIndexs)
            {
                AutoParameter = parameter;
                this.type     = type;
                Methods       = methodIndexs;

                Namespace = type.Type.Namespace;
                if (Namespace == AutoParameter.DefaultNamespace)
                {
                    Namespace = fastCSharpAPI;
                }
                else
                {
                    Namespace = Namespace.StartsWith(AutoParameter.DefaultNamespace, StringComparison.Ordinal) && Namespace[AutoParameter.DefaultNamespace.Length] == '.' ? fastCSharpAPI + Namespace.Substring(AutoParameter.DefaultNamespace.Length) : Namespace;
                }

                _code_.Empty();
                create(false);
                code.Add(_code_);
            }
Beispiel #2
0
 /// <summary>
 /// 成员信息
 /// </summary>
 /// <param name="type">成员类型</param>
 /// <param name="name">成员名称</param>
 protected memberInfo(memberType type, string name)
     : base(0)
 {
     MemberType = type;
     MemberName = name;
 }