Interface issue

Posted by peter on Stack Overflow See other posts from Stack Overflow or by peter
Published on 2009-10-15T03:42:33Z Indexed on 2010/06/16 8:02 UTC
Read the original article Hit count: 204

Filed under:
|
|
|

i added a property 'WrmVersion' in interface IResourcePolicy but i am not getting those thing in the implementation side means here it should come in the List view data. means SubItems.Add(((IResourcePolicy)Data).WrmVersion is not getting

This is the interface

public interface IResourcePolicy
   {
          DataVersion WrmVersion
       {
           get;
           set;
       }
          bool ResourcePolicyEnabled
      {
         get;
         set;
      }

  }

i am implementing it in

   public new IResourcePolicy Data
         {
            get
            {
               return (IResourcePolicy)base.Data;
            }
         }


  protected override void OnUpdate()
         {


if(Data != null)
               {
                  Text = base.Data.Name;
                  if(SubItems.Count == 1)
                  {
                     SubItems.Add(((IResourcePolicy)Data).ResourcePolicyEnabled.ToString());

}

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET