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); } } }
public bool DoesClassContainMember(string memberName, bool isStatic) { if (isStatic) { return(StaticMemberVariables.ContainsKey(memberName) || StaticMemberMethods.ContainsKey(memberName)); } else { return(MemberVariables.ContainsKey(memberName) || MemberMethods.ContainsKey(memberName)); } }