Exemplo n.º 1
0
 private void InitializeProperties()
 {
     if (this.IsPartial)
     {
         this.properties = base.GetRootDeclaration().Properties.GetPartialClone(this);
     }
     else
     {
         this.properties = new PropertySignatureMembers(this);
     }
 }
Exemplo n.º 2
0
        public override void TranslateMembers <TItem, TParent>(TParent parent, IPropertySignatureMembers <TItem, TParent> ambigPropertySigMembers)
        {
            string regionText = "";
            bool   bRegion    = false;

            if (bRegion = (options.AutoRegionsFor(AutoRegionAreas.Properties) && (ambigPropertySigMembers.GetCountForTarget(parent) > 0)))
            {
                regionText = String.Format(_OIL._Core.MaintenanceResources.AutoRegions_BasePattern, parent.Name, " properties");
                this.TranslateConceptRegionStart(regionText);
            }
            this.TranslateMembers <TItem, TParent, CodeMemberProperty>(parent, ambigPropertySigMembers);
            if (bRegion)
            {
                this.TranslateConceptRegionEnd(regionText);
            }
        }
Exemplo n.º 3
0
 public abstract void TranslateMembers <TItem, TParent>(TParent parent, IPropertySignatureMembers <TItem, TParent> ambigPropertySigMembers)
     where TItem :
 IPropertySignatureMember <TParent>
     where TParent :
 IDeclarationTarget;
Exemplo n.º 4
0
 public virtual void TranslateMembers(ISignatureMemberParentType parent, IPropertySignatureMembers propertySigMembers)
 {
     this.TranslateMembers <IPropertySignatureMember, ISignatureMemberParentType>(parent, propertySigMembers);
 }