KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there way to do something along these lines? interface Iface { [anytype] Prop1 { get; } [anytype] Prop2 { get; } } class Class1 : Iface { public string Prop1 { get; } public int Prop2 { get; } } class Class2 : Iface { public int Prop1 { get; } public bool? Prop2 { get; } } I don't care about the type of the properties, I just need the properties to be available. This doesn't have to be implemented with an interface, just using that as an example.
Tags (comma-separated)
Save Edits
Cancel