Nach Ordnungsbegriffen durchsuchen

Alle Ordnungsbegriffe » C# » .Net (RSS)

C# Acrobatics : Lambdas and Expression Methods as a replacement for NVelocity von .Net Smoothie

I’ve been very quiet recently. (I’m trying to not be so loud, Scott. ) You see, I’ve been writing a lot of ASP.Net code for a site I’m working on. And, to be honest, I’ve been having a lot of trouble. The source code for...

Writing Custom Exception Classes the Quick Way von .Net Smoothie

Until recently I thought this was a well-known feature. After demonstrating it a few times, I found out it wasn’t. A long time ago, in an cubicle far, far away, someone created the .Net Framework. To cut a long story short, they simultaneously produced...

Can You Pass an Anonymous Type Across Functions? von .Net Smoothie

One of the biggest questions with Anonymous Types is “can I pass them around?” If not, why not? Can you do something like this, for example: var GetAnonymousValue() { return new { Name = “Richard Bushnell” }; } void Main() { var...

Refactoring C# Series: Use Automatic Property von .Net Smoothie

Name Use Automatic Property Summary You have a property in a class which just wraps a field of the same type, and simply returns or sets that field. private string _field1; public string Field1 { get { return _field1; } set { _field1 = value; } } Becomes...

New series: Refactoring C# 1.0 code to C# 3.0 von .Net Smoothie

I really like Scott Hanselmann’s idea to write an indefinite series of posts about reading code to be a better developer. I’m going to copy his idea, and write a series of my own. Since its first version, C# has evolved from being a Java clone...