Exemplo n.º 1
0
        public static string funcCodeFilter(AutoImplementFunctionInfo info)
        {
            string funcCode = info.assetCode;

            if (funcCode.Contains("#"))
            {
                string[] sp = funcCode.Split('#');
                funcCode = sp[0];
            }
            if (funcCode.Contains("."))
            {
                string[] sp = funcCode.Split('.');
                funcCode = sp[sp.Length - 1];
            }

            return(funcCode);
        }
Exemplo n.º 2
0
        static public AutoImplementFunction Create(AutoImplementFunctionInfo info)
        {
            AutoImplementFunction ret = new AutoImplementFunction()
            {
                AssetCode               = info.assetCode,
                FuncCode                = funcCodeFilter(info),
                hint                    = info.hint,
                nodeHint                = info.nodeHint,
                MenuTitle               = info.menuTitle,
                FuncTitle               = info.funcTitle,
                ClassType               = info.classType,
                ReturnType              = info.returnType,
                ArgumentTypeList        = info.argumentTypeList,
                DllModule               = info.dllModule,
                IsConstructor           = info.isConstructor,
                typeRequests            = info.typeRequests,
                GenericMethodParameters = info.genericMethodParameters,
                oldSpecification        = info.oldSpecification,
            };

            return(ret);
        }