List Info

Thread: C-Sharp (C#) Group: Express the property "string this" in an interface




C-Sharp (C#) Group: Express the property "string this" in an interface
user name
2006-03-15 21:15:01
I would like to place this property in an interface

.....
     public string this[string key]
          { get { return .... } }


----

Is that possible to do in an interface? The compiler gets
hung up on
the keyword this on the variations I have tried....


advTHANKSance


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Express the property "string this" in an interface
user name
2006-03-15 21:50:56
interface IInterface
{
  string this[string key]
  {
     get;
     set;
   }
}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )