C# Pick Utility Type

Viewed 236

In Typescript, there is a Pick Utility Type. Is it possible to do the same in C#? For example:

public class SomeClassA {
    public string SomePropA { get; set; }
    public string SomePropB { get; set; }
    public string SomePropC { get; set; }
}

public class SomeClassB Pick<SomeClassA, SomePropA, SomePropB> {
}
0 Answers
Related