in
tri
home of the trivadians

Nach Ordnungsbegriffen durchsuchen

  • 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
  • A not-so-simple Mixin with C# 3.0

    My last post gave a simple idea of how to do a Mixin with C#. Rather than repeating what someone else has already done, if you want to see a more complex example of what can be done, check out Create Mixins with Interfaces and Extension Methods by Bill Wagner at MSDN.com.
    Erstellt in Richard's blog (Weblog) von Anonymous am 12-26-2007
Seite 1 von 1 (2 Treffer)
/