src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add a property to this class
/// </summary>
/// <param name="name">property name</param>
/// <param name="pars">parameters</param>
/// <param name="retType">return type</param>
/// <returns>a descriptor for this new property</returns>
Add a property to this class
Add a property to this class
public Property AddProperty(string name, Type retType, Type[] pars) {
            Property p = (Property)FindFeature(name,properties);
            if (p != null)
                throw new DescriptorException("Property " + p.NameString());
            p = new Property(name, retType, pars, this);
            properties.Add(p);
            return p;
        }
public Property AddProperty ( string name , Type retType , Type [ ] pars ) { Property p = ( Property ) FindFeature ( name , properties ) ; if ( p != null ) throw new DescriptorException ( " " + p . NameString ( ) ) ; p = new Property ( name , retType , pars , this ) ; properties . Add ( p ) ; return p ; }
Add a property to this class
Add a property to this class
a descriptor for this new property
a descriptor for this new property
name
string
None
retType
Type
None
pars
Type[]
None