public ProjectMember EnsureMethod(String methodName) { ProjectMember pm = this.GetMethod(methodName); if (pm == null) { pm = new ProjectMember(this); pm.Name = methodName; this.methods.Add(methodName.ToLower(), pm); } return pm; }
public ProjectMember EnsureField(String fieldName) { ProjectMember pm = this.GetField(fieldName); if (pm == null) { pm = new ProjectMember(this); pm.Name = fieldName; this.fields.Add(fieldName.ToLower(), pm); } return pm; }
public ProjectMember EnsureProperty(String propertyName) { ProjectMember pm = this.GetProperty(propertyName); if (pm == null) { pm = new ProjectMember(this); pm.Name = propertyName; this.properties.Add(propertyName.ToLower(), pm); } return pm; }