in
tri
home of the trivadians

Nach Ordnungsbegriffen durchsuchen

  • C# Acrobatics : Lambdas and Expression Methods as a replacement for NVelocity

    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 .Net has been very helpful, and I’ve learnt...
    Erstellt in Richard's blog (Weblog) von Anonymous am 06-02-2008
  • The dream of "half-automatic" Automation Properties

    Everyone who has worked with WPF knows the interface INotifyPropertyChanged. It only defines the PropertyChanged-event, that should be called when a property’s value has been changed. The PropertyChanged-event is used by WPF’s Data Binding. Normally a class fires the event in the set-Accessors...
    Erstellt in Thomas Huber (Weblog) von Anonymous am 05-02-2008
  • WPF: Code in XAML -> Width={Binding Height}*2?

    This posting consists of two sections: cool but not really useable really cool and usable lets start with the non-usable stuff [Code in XAML]: Whenever you declare your UI in XAML you've to attach event handlers in the code behind file, right? I expected that there has to be another way to attach...
    Erstellt in Tobias Muellers Blog (Weblog) von Anonymous am 04-10-2008
  • Virtual, new and override - the differences

    Auf die Frage was ist der Unterschied zwischen new und override, im konkreten Fall für ein Property verwendet, bekommt man stehts die korrekte Antwort. New versteckt das Property in der Basisklasse, override überschreibt dieses. Gut, aber was heisst das genau? Nun werden die sinnvollen Antworten doch...
    Erstellt in Jean-Claude Trachsel (Weblog) von Anonymous am 03-11-2008
  • WPF: Learn from Silverlight controls

    Quicknote: If you are a wpf custom control writer(1), check out the sources for the Silverlight 2.0b1 controls released with mix08 keynote: Silverlight 2.0b1 controls. It is actually a whole vs2008 solution, so you can even "learn" how to create tests against custom controls. BTW: The new ...
    Erstellt in Tobias Muellers Blog (Weblog) von Anonymous am 03-10-2008
  • Writing Custom Exception Classes the Quick Way

    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 guidelines for creating Exception classes...
    Erstellt in Richard's blog (Weblog) von Anonymous am 02-15-2008
  • How-To: add geographical information to IIS log files with LINQ

    LINQ in action: a real life problem, solved with a few lines of easy-to-read code. In my last post, I promised to provide a solution to enhance the information we can derive from IIS logs with the help of Log Parser. All you need is the free Geo-IP database (updated frequently) that can be found here...
    Erstellt in Michael Könings Blog (Weblog) von admin am 01-23-2008
  • Can You Pass an Anonymous Type Across Functions?

    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 value = GetAnonymousValue(); var name = value.Name;...
    Erstellt in Richard's blog (Weblog) von Anonymous am 01-08-2008
  • Refactoring C# Series: Use Automatic Property

    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: public string Field1 { get; set; } C# Version...
    Erstellt in Richard's blog (Weblog) von Anonymous am 12-27-2007
  • New series: Refactoring C# 1.0 code to C# 3.0

    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 to something much more dynamic. I’ve noticed...
    Erstellt in Richard's blog (Weblog) von Anonymous am 12-25-2007
Seite 1 von 2 (20 Treffer) 1 2 > Weiter
/