This is what I would like to do:
public interface iRapposory & lt; Tetset & lt; Telemetry & gt; & Gt; Where TSet & lt; TElement & gt; : IEnumerable & lt; Telemetry & gt; {Tसेट and LT; TNTTA & gt; GetSet & LT; TEntity & gt; (); } Is such a construction possible?
Edit : The question was not enough. Here's what I want to do: Public class DBRipository: IRAPSorgetry and lieutenant; DBSet, & gt; Telemetry & gt; & Gt; {Dbets and lieutenant; Tentity & gt; GetSet & LT; TEntity & gt; (); } Public Category Object Respository: IRAPSorgetry & Lt; ObjectSat & lt; Telemetry & gt; & Gt; {Objects and Lieutenant; Tentity & gt; GetSet & LT; TEntity & gt; (); } Meaning, I want a restrictive type: - Accept a normal parameter - Apply the given single parameter interface.
Is this possible? In fact, I'm only happy with the first thing.
Public Interface IRAPSorporation & lt; Tegenic & lt; Telemetry & gt; & Gt; {Techie & lt; Argument & gt; GetThing & LT; TArgument & gt; (); } Public interface erupository & lt; Taclication, TITIM & gt; Where TCollection: IEnumerable & lt; TItem & gt; {TCollection GetSet & lt; TItem & gt; (); } (I assume TENTity should have been in the original TElement ...) It is being said that it is most likely to write something like this:
Public Interface IRAPSorporation & lt; T & gt; {IEnumerable & lt; T & gt; GetSet & LT; T & gt; (); } This will be a common means of completing the above.
Comments
Post a Comment