Sign In
Fabulous Adventures In Coding
Eric Lippert's Blog
Tags
Aargh! (8)
accuracy (6)
anonymous types (3)
Arrays (8)
ASP (11)
AStar (5)
Async (15)
bad jokes (14)
Begging the question (4)
Benford's Law (3)
Best Of FAIC (12)
Big Words (5)
Books (22)
Breaking Changes (24)
Brittle Base Classes (6)
C# (317)
C# 4.0 (39)
C# 5.0 (9)
Cargo Cult Programming (4)
cast operator (3)
Channel 9 (6)
Charts (4)
closures (3)
Code Generation (10)
Code Quality (29)
COM Programming (57)
Conditional Operator (3)
Continuation Passing Style (11)
Conversions (16)
Covariance and Contravariance (22)
customer service (4)
declaration spaces (5)
Dialogue (14)
English Usage (11)
exception handling (9)
Floating Point Arithmetic (14)
grammars (9)
graph colouring (5)
Hashing (8)
High Dimensional Spaces (5)
Immutability (27)
integer arithmetic (5)
Interviewing (8)
Introduction (6)
It Hurts When I Do This (5)
Iterators (10)
JScript (93)
JScript .NET (29)
keywords (4)
Lambda Expressions (20)
Language Design (59)
local variables (3)
localization (3)
Mathematics (14)
Memory Management (13)
Metablogging (9)
Mistakes (4)
Music (6)
myths (7)
namespaces (5)
Non-computer (37)
Optional arguments (5)
Overload Resolution (9)
Pages (25)
Performance (48)
precedence (4)
precision (7)
protected (7)
Puzzles (46)
queries (3)
quotable quotations (4)
Quotes (3)
Rants (51)
Rarefied Heights (51)
Recursion (26)
reference (4)
Regular Expressions (13)
Relationships (4)
Salt (4)
Science (12)
scope (5)
Scripting (189)
Security (46)
shadowcasting (6)
SimpleScript (30)
Software development methodology (13)
Static Methods (6)
Threading (18)
Topological Sort (4)
Type Inference (17)
type safety (4)
unsafe code (4)
Value Types (11)
VBScript (80)
Video (12)
virtual dispatch (9)
VSTO (10)
warnings (5)
What's The Difference? (11)
Zombies (4)
Browse by Tags
MSDN Blogs
>
Fabulous Adventures In Coding
>
All Tags
>
brittle base classes
Tagged Content List
Blog Post:
Hide and seek
Eric Lippert
Another interesting question from StackOverflow. That thing is a gold mine for blog topics. Consider the following: class B { public int X() { return 123; } } class D : B { new protected int X() { return 456; } } class E : D { public int Y() { return X(); } // returns 456 } class P { public static...
on
14 Jun 2010
Blog Post:
Don't repeat yourself; consts are already static
Eric Lippert
Today, another entertaining question from StackOverflow . Presented again as a dialogue, as is my wont. The specification says " even though constants are considered static members, a constant-declaration neither requires nor allows a static modifier ." Why was the decision made to not force constants...
on
10 Jun 2010
Blog Post:
Putting a base in the middle
Eric Lippert
Here’s a crazy-seeming but honest-to-goodness real customer scenario that got reported to me recently. There are three DLLs involved, Alpha.DLL, Bravo.DLL and Charlie.DLL. The classes in each are: public class Alpha // In Alpha.DLL { public virtual void M() { Console.WriteLine("Alpha"); } } public class...
on
29 Mar 2010
Blog Post:
Why Can't I Access A Protected Member From A Derived Class? Part Six
Eric Lippert
Reader Jesse McGrew asks an excellent follow-up question to my 2005 post about why you cannot access a protected member from a derived class . (You probably want to re-read that post in order to make sense of this one.) I want to be clear in my terminology, so I’m going to define some terms. Suppose...
on
14 Jan 2010
Blog Post:
Future Breaking Changes, Part Three
Eric Lippert
As I said earlier , we hate causing breaking changes in our product, the C# compiler, because they cause our customers pain. Said customers are also software developers, and presumably they hate causing breaking changes for their customers as much as we do. We want to throw our customers into the...
on
4 Sep 2007
Blog Post:
Virtual Methods and Brittle Base Classes
Eric Lippert
Hey, I'm back! And in my new location. That was the longest and least relaxing vacation I've ever taken. Fun, yes. Relaxing, no. And to top it off, my kitchen is not done yet. We're shooting for being able to run water tonight and actually use appliances by tomorrow night, but we'll see how it goes...
on
7 Jan 2004
Page 1 of 1 (6 items)