I
I
Ivan Balan2014-04-15 21:08:08
Delphi
Ivan Balan, 2014-04-15 21:08:08

Is there a replacement for pascal's type in C#?

Hello, is there a replacement for such a Pascal thing in Sharpe:

type
    TElement = integer;
var
    el:TElement;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sumor, 2014-04-15
@Toddams

You can use this construct before declaring classes:
Or, if the class is not sealed (sealed), you can inherit from it:
public class MyIntList : List<int>{}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question