Recent Posts
Calendar
November 2013
S M T W T F S
« Oct    
 12
3456789
10111213141516
17181920212223
24252627282930

Posts Tagged ‘syntax’

Using Sealed in CSharp

misc_vol2_023 Another potentially useful but not very popular keyword in CSharp is the sealed keyword.  While not a keyword that you will need to use often, it is a critical keyword for framework developers who want to have tighter control over how their classes get used.

The two primary uses of the sealed keyword are as they apply to the class and as they are applied to elements of the class.

Read the rest of this entry »

Two Interfaces. Same Method. Two meanings.

ppl-act-010 We’ve discussed interfaces before, but today I want to dig a little deeper.  I’m going to assume for now that you already know what an interface is and that you know how to implement one on a class.

But let’s assume for a bit that you have two interfaces that have exactly the same method declared in them but each implementation of the method has two entirely different meanings.  How do you code for this?

Read the rest of this entry »