4,327 reputation
11023
bio website weblogs.asp.net/avnerk
location Israel
age
visits member for 2 years, 6 months
seen 11 hours ago

Tech-turtle, fond of C# and .NET but likes to venture out to forage elsewhere as well.


Apr
27
answered What is the difference between C# and Visual C#?
Apr
23
comment Why is there a new() constraint in C# but no other similar constraint?
Interesting. Why the duplicate call to default(T) for value types?
Apr
19
comment Typical instantiation of new object - is there a way to avoid repetitious syntax?
@Cantabrigian I added a new example to address the suggested syntax you added in your question.
Apr
19
revised Typical instantiation of new object - is there a way to avoid repetitious syntax?
added 787 characters in body
Apr
18
reviewed Approve Typical instantiation of new object - is there a way to avoid repetitious syntax?
Apr
18
reviewed Approve Typical instantiation of new object - is there a way to avoid repetitious syntax?
Apr
18
answered Typical instantiation of new object - is there a way to avoid repetitious syntax?
Apr
8
comment How To Invoke A Method When It's Class is Accessed (Any Method) - “OnClassEnter”
Alternately, if you have no return value, you need to use Action<Device>, since C# doesn't have the concept of void type parameters.
Mar
24
comment Building presentation layer directly on data layer
While I agree with the need for separation, I've found that "what happens if you change UI frameworks or DB engines" is a bit if a red herring. Most projects never do, certainly aren't "likely need to be replaced", and any change will almost certainly require some coding work due to leaky abstractions anyway.
Feb
10
comment Switch or a Dictionary when assigning to new object
You're right. I didn't notice that in the OP, since it's such a less-useful use-case, in my experience. :)
Feb
10
comment Switch or a Dictionary when assigning to new object
Of course, otherwise it wouldn't be lazy initialization, just re-initialization every time.
Feb
2
awarded  Fanatic
Jan
29
awarded  Informed
Jan
15
answered Why can't we use unique identifier as combination of email and password?
Jan
8
awarded  Pundit
Jan
2
comment Programming Languages “Higher Level” Than Python
You are not actually talking about the same meaning of abstraction. The OP is talking about abstracting machine architecture semantics. You're talking about the OO principle.
Dec
26
reviewed Reject When to use functions vs methods?
Dec
26
answered Using the system tray / notification area app in Windows 7?
Dec
25
reviewed Approve What constitutes a dead programming language?
Dec
20
reviewed Leave Open How to implement change and new tools in a small dev team?