Esempio n. 1
0
        public List <CodeGenerateSystem.Base.UsefulMemberHostData> GetUsefulMembers(CodeGenerateSystem.Base.LinkControl linkCtrl)
        {
            List <CodeGenerateSystem.Base.UsefulMemberHostData> retValue = new List <CodeGenerateSystem.Base.UsefulMemberHostData>();

            foreach (var paramNode in mChildNodes)
            {
                if (paramNode is DelegateParameterControl)
                {
                    retValue.AddRange(((DelegateParameterControl)paramNode).GetUsefulMembers(linkCtrl));
                }
            }

            return(retValue);
        }
Esempio n. 2
0
        public List <CodeGenerateSystem.Base.UsefulMemberHostData> GetUsefulMembers(CodeGenerateSystem.Base.LinkControl linkCtrl)
        {
            List <CodeGenerateSystem.Base.UsefulMemberHostData> retValue = new List <CodeGenerateSystem.Base.UsefulMemberHostData>();

            if (linkCtrl == returnLink)
            {
                if (mReturnType == null)
                {
                    return(retValue);
                }
                var memberData = new CodeGenerateSystem.Base.UsefulMemberHostData()
                {
                    ClassTypeFullName = mReturnType.FullName,
                    HostControl       = this,
                    LinkObject        = mReturnLinkInfo,
                };

                retValue.Add(memberData);
            }
            return(retValue);
        }