Browse by Tags

Related Posts

  • Non-generic default values in C#? Why not?!

    A relatively obscure new keyword in C# 2.0 is the default(T) keyword. It's shorthand for checking if the given generic parameter T is a value type or reference type. If it's a reference type, it returns null. Otherwise it returns 0/false/0.0 or whatever the default value for the type is. For some reason...
    Posted to Miscellaneous Debris (Weblog) by AvnerK on 05-21-2006, 12:00 AM
    Filed under: CodeSnippets, Reflection, C#, .NET
  • Aggregated Interface Implementation

    I've been struggling around the aggregation used in WCF's Binding object model, as implemented in the GetProperty<T> method (see relevant discussions with Nicholas Allen from the WCF team here and here ), and I'm struck by how the need for a flexible, late-bound way of extracting information...
    Posted to Miscellaneous Debris (Weblog) by AvnerK on 08-08-2006, 12:00 AM
    Filed under: Reflection, WCF, WinFX, C#, .NET
  • Reflecting over an Event

    A coworker (Hey, Evgeny!) came to me with a puzzler today. He has an object that exposes an event, and he wants to know whether he's already subscribed to that event. Two things immediately came to mind - the first was that he really shouldn't be doing that, and the second was to suggest that...
    Posted to Miscellaneous Debris (Weblog) by Avner Kashtan on 03-29-2007, 12:00 AM
    Filed under: .NET, CodeSnippets, Reflection, C#
  • Reflecting over an Event

    A coworker (Hey, Evgeny!) came to me with a puzzler today. He has an object that exposes an event, and he wants to know whether he's already subscribed to that event. Two things immediately came to mind - the first was that he really shouldn't be doing that, and the second was to suggest that...
    Posted to Miscellaneous Debris (Weblog) by Avner Kashtan on 03-29-2007, 12:00 AM
    Filed under: .NET, CodeSnippets, Reflection, C#
  • Aggregated Interface Implementation

    I've been struggling around the aggregation used in WCF's Binding object model, as implemented in the GetProperty<T> method (see relevant discussions with Nicholas Allen from the WCF team here and here ), and I'm struck by how the need for a flexible, late-bound way of extracting information...
    Posted to Miscellaneous Debris (Weblog) by AvnerK on 08-08-2006, 12:00 AM
    Filed under: .NET, WinFX, Reflection, WCF, C#
  • Non-generic default values in C#? Why not?!

    A relatively obscure new keyword in C# 2.0 is the default(T) keyword. It's shorthand for checking if the given generic parameter T is a value type or reference type. If it's a reference type, it returns null. Otherwise it returns 0/false/0.0 or whatever the default value for the type is. For some reason...
    Posted to Miscellaneous Debris (Weblog) by AvnerK on 05-21-2006, 12:00 AM
    Filed under: .NET, CodeSnippets, Reflection, C#
  • Crossing the line - Reflection and Reality

    When we're working Reflection, we tend to think in different terms than we do when we're actually calling methods. There's an extra level of abstraction in everything we do. Translating between these levels of abstraction isn't always easy or intuitive, so I'll try to go over some common paths, using...
    Posted to Miscellaneous Debris (Weblog) by Avner Kashtan on 12-12-2006, 12:00 AM
    Filed under: .NET, Reflection, C#
  • Indexing and searching business entities using Lucene.Net Framework, part 1

    Conception using generics and reflection of a search engine to index and search content in your business entities without being intrusive. Introduction Today, one of the functionality that almost all web sites implements is a method to index content and give it users the possibility to search that content...
    Posted to Laurent Kempé (Weblog) by lkempe on 11-16-2007, 12:00 AM
    Filed under: Architecture, ASP.NET 2.0, C#, Generics, Reflection, Tools, innoveo solutions, Interoperability
  • Indexing and searching business entities using Lucene.Net Framework, part 2

    Conception using generics and reflection of a search engine to index and search content in your business entities without being intrusive. Part 1 is available following this link Indexing and searching business entities using Lucene.Net Framework, part 1 Lucene.Net presentation Lucene.Net is an open...
    Posted to Laurent Kempé (Weblog) by lkempe on 03-07-2008, 12:00 AM
    Filed under: Tools, ASP.NET 2.0, Interoperability, innoveo solutions, C#, Architecture, Generics, Reflection
  • Indexing and searching business entities using Lucene.Net Framework, part 3

    Conception using generics and reflection of a search engine to index and search content in your business entities without being intrusive. Part 1 and 2 are available following those links Indexing and searching business entities using Lucene.Net Framework, part 1 Indexing and searching business entities...
    Posted to Laurent Kempé (Weblog) by lkempe on 03-07-2008, 12:00 AM
    Filed under: Tools, ASP.NET 2.0, Interoperability, innoveo solutions, C#, Architecture, Generics, Reflection
Page 1 of 1 (10 items)
Page view counter