public override MemberElement CreateMemberElement(TypeElement type, string memberName, string returnType, MemberTypes memberType, IncludeStatus includeStatus, VisibilityOverride visibilityOverride, SecurityTransparencyStatus securityTransparencyStatus) { // Identify the member by category (method/prop/field/event), name, and return type. These // strings are what matched by ModelSigFormatter string memberSig = memberType.ToString() + " : " + memberName; if (returnType != null) memberSig = memberSig + " : " + returnType; CodeMemberElement member = new CodeMemberElement(includeStatus, visibilityOverride, securityTransparencyStatus, memberSig, returnType, memberType, memberName); (type as CodeTypeElement).m_members.Add(memberSig, member); return member; }
public override MemberElement CreateMemberElement(TypeElement type, string memberName, string returnType, MemberTypes memberType, IncludeStatus includeStatus, VisibilityOverride visibilityOverride, SecurityTransparencyStatus securityTransparencyStatus) { TrimType typeInfo = (TrimType)type; TrimMember id = new TrimMember(typeInfo, memberName, returnType, /*paramListString, */memberType, includeStatus, visibilityOverride, securityTransparencyStatus); typeInfo.Members.Add(id.Key, id); return id; }
public override MemberElement CreateMemberElement(TypeElement type, string memberName, string returnType, MemberTypes memberType, IncludeStatus includeStatus, VisibilityOverride visibilityOverride, SecurityTransparencyStatus securityTransparencyStatus) { ThinType declaringType = (ThinType)type; includeStatus = AdjustIncludeStatus(includeStatus); ThinMember member = new ThinMember(declaringType, memberName, returnType, memberType, includeStatus, null, visibilityOverride, securityTransparencyStatus); String key = member.Key; if (declaringType.Members.ContainsKey(key)) { String errMsg = String.Format("XML file error: duplicate Member element \"{0}\" in type \"{1}\"", key, type.Key); Console.Error.WriteLine(errMsg); throw new FormatException(errMsg); } declaringType.Members.Add(key, member); return member; }
abstract public MemberElement CreateMemberElement(TypeElement type, string memberName, string returnType, MemberTypes memberType, IncludeStatus includeStatus, VisibilityOverride visibilityOverride, SecurityTransparencyStatus securityTransparencyStatus);