private void InitializeMethods() { if (this.IsPartial) { this.methods = base.GetRootDeclaration().Methods.GetPartialClone(this); } else { this.methods = new MethodSignatureMembers(this); } }
public virtual void TranslateMembers(ISignatureMemberParentType parent, IMethodSignatureMembers methodSigMembers) { this.TranslateMembers <IMethodSignatureParameterMember, IMethodSignatureTypeParameterMember, CodeMemberMethod, ISignatureMemberParentType>(parent, methodSigMembers); }
public abstract void TranslateMembers <TParameter, TTypeParameter, TSignatureDom, TParent>(TParent parent, IMethodSignatureMembers <TParameter, TTypeParameter, TSignatureDom, TParent> ambigMethodSigMembers) where TParameter : IParameteredParameterMember <TParameter, TSignatureDom, TParent> where TTypeParameter : IMethodSignatureTypeParameterMember <TParameter, TTypeParameter, TSignatureDom, TParent> where TSignatureDom : CodeMemberMethod, new() where TParent : IDeclarationTarget;
public override void TranslateMembers <TParameter, TTypeParameter, TSignatureDom, TParent>(TParent parent, IMethodSignatureMembers <TParameter, TTypeParameter, TSignatureDom, TParent> ambigMethodSigMembers) { string regionText = ""; bool bRegion = false; if (bRegion = (options.AutoRegionsFor(AutoRegionAreas.Methods) && (ambigMethodSigMembers.GetCountForTarget(parent) > 0))) { regionText = String.Format(_OIL._Core.MaintenanceResources.AutoRegions_BasePattern, parent.Name, " methods"); this.TranslateConceptRegionStart(regionText); } this.TranslateMembers <IMethodSignatureMember <TParameter, TTypeParameter, TSignatureDom, TParent>, TParent, TSignatureDom>(parent, ambigMethodSigMembers); if (bRegion) { this.TranslateConceptRegionEnd(regionText); } }