Florian Rappl, Department of Theoretical Physics, University of Regensburg
class
and struct
null
if not instantiatedthis
pointerbase
public
private
protected
internal
public
internal protected
, i.e. internal or protectedclass
/ struct
/ interface
/ delegate
/ enum
is internal
, a member of a class or structure is private
new
abstract
(no basic implementation available) or virtual
override
List<T>
- strongly typed collection (list)List<int>
, List<double>
, two classes will be generated by the compilerT
with usage T myvariable
)public static void Swap<T>(ref T l, ref T r) {
T temp = r; r = l; l = temp;
}
int a = 3; int b = 4; Swap(ref a, ref b);
where
new()
means has def. constructorvoid Test<T>(T obj) where T : new()
T : Stopwatch, new()
where
abstract
before class
abstract
methods and propertiesControl
Form
Form
represents a windowFlorian Rappl, MVP Visual C#