C#: support for component-oriented programming
Properties:
Same syntax as fields, but have getter/setter methods underneath.
Delegates
Type-safe OO function pointer
Useful for callbacks in event-based code.
Syntax:
delegate void D(int x)
D ptr = new D(obj.f);
User-extensible custom attributes
Previous slide
Next slide
Back to first slide
View graphic version