Category Archives: C#

C#. Interfaces Hierarchy

123

 

Posted in C# | Comments Off on C#. Interfaces Hierarchy

C#. Explicit interfaces implementation

123

 

Posted in C# | Comments Off on C#. Explicit interfaces implementation

C#. Array of interfaced objects

123

full example

 

Posted in C# | Comments Off on C#. Array of interfaced objects

C#. Interface as return value

123

In Main

 

Posted in C# | Comments Off on C#. Interface as return value

C#. Interface as method Param

123

 

Posted in C# | Comments Off on C#. Interface as method Param

C#. Interfaces Is as

Is as

try catch – not best variant

123

 

Posted in C# | Comments Off on C#. Interfaces Is as

C#. Interfaces – simple example

123 base class Shape Triangle, Hexagon, Circle – derived from Shape Triangle, Hexagon implement interface IPointy Circle – NOT implement IPointy

 

Posted in C# | Comments Off on C#. Interfaces – simple example

C#.System.GC

123

Finalizer for unmanaged resources My Resource Wrapper

IDisposable

using Dispose in Main

try finally Dispose

using = try/finally

combination of Finalization and Dispose()

template from microsoft

     

Posted in C# | Comments Off on C#.System.GC

C#. Exceptions and Finally

123

 

Posted in C# | Comments Off on C#. Exceptions and Finally

C#. MultiExceptions

123 Consequence of exceptions – important! First concrete – last is general!

not Ok if

   

Posted in C# | Comments Off on C#. MultiExceptions