In Depth Banner
Skip Navigation Links

Select your preferred language

Listing 4. The DynamicPropertyFilterAttribute

  [

  AttributeUsage(AttributeTargets.Property, Inherited=true)

  ]

  class DynamicPropertyFilterAttribute : Attribute

  {

    string _propertyName;

    public string PropertyName

    {

      get{return _propertyName;}

    }

 

    string _showOn;

    public string ShowOn

    {

      get{return _showOn;}

    }

 

 

    public DynamicPropertyFilterAttribute(string propName, string value)

    {

      _propertyName=propName;

      _showOn=value;

    }

  }

 

Use the Back button to return to the article.

Copyright © Bob Powell 2003-2009. All rights reserved