Пример #1
0
        public void AddNewMember(string memberName, bool isStatic, ClepsType memberType)
        {
            Debug.Assert(!DoesClassContainMember(memberName));

            if (isStatic)
            {
                if (memberType.IsBasicType)
                {
                    StaticMemberVariables.Add(memberName, memberType);
                }
                else
                {
                    StaticMemberMethods.Add(memberName, memberType);
                }
            }
            else
            {
                if (memberType.IsBasicType)
                {
                    MemberVariables.Add(memberName, memberType);
                }
                else
                {
                    MemberMethods.Add(memberName, memberType);
                }
            }
        }
Пример #2
0
 public bool DoesClassContainMember(string memberName, bool isStatic)
 {
     if (isStatic)
     {
         return(StaticMemberVariables.ContainsKey(memberName) || StaticMemberMethods.ContainsKey(memberName));
     }
     else
     {
         return(MemberVariables.ContainsKey(memberName) || MemberMethods.ContainsKey(memberName));
     }
 }