public override void ProcessHolder(AttributeHolder holder) { DefClass type = (DefClass)holder; foreach (string[] names in _interfaceNames) { List <DefClass> ifaces = new List <DefClass>(); foreach (string ifacename in names) { ifaces.Add(type.FindType <DefClass>(ifacename)); } Interfaces.Add(ifaces.ToArray()); } }
public override void ProcessHolder(AttributeHolder holder) { switch (WrapType) { case WrapTypes.NativePtrValueType: case WrapTypes.ValueType: if (!holder.HasAttribute <ValueTypeAttribute>()) { holder.Attributes.Add(new ValueTypeAttribute()); } break; case WrapTypes.Overridable: DefClass type = (DefClass)holder; AddAttributeToInheritanceChain(type, new BaseForSubclassingAttribute()); break; } }
public virtual void ProcessHolder(AttributeHolder holder) { }
public override void ProcessHolder(AttributeHolder holder) { DefClass type = (DefClass)holder; AddAttributeToInheritanceChain(type, new BaseForSubclassingAttribute()); }
private void AddAttributeInHolder(AttributeHolder holder, AutoWrapAttribute attr) { holder.Attributes.Add(attr); _holders.Add(new KeyValuePair <AttributeHolder, AutoWrapAttribute>(holder, attr)); }