Weitao Su's WebLog

.Net Reflection and more

Posts
  • Weitao Su's WebLog

    Override properties (III): Type.GetProperties

    • 1 Comments
    I have discussed some aspects of property inheritance in my previous posts. http://blogs.msdn.com/weitao/archive/2009/05/28/override-properties-i.aspx http://blogs.msdn.com/weitao/archive/2009/05/28/override-properties-ii-getcustomattributes...
  • Weitao Su's WebLog

    Bing

    • 2 Comments
    http://www.bing.com Now can anyone tell me where that frontpage picture is taken?
  • Weitao Su's WebLog

    Override properties (II): GetCustomAttributes

    • 4 Comments
    In my last post ( http://blogs.msdn.com/weitao/archive/2009/05/28/override-properties-i.aspx ) I revealed the truth behind property overriding. In today's article I will talk about how that impact the behavior of GetCustomAttributes. In reflection...
  • Weitao Su's WebLog

    Override properties (I)

    • 3 Comments
    I'll start today's discussion with a question: do virtual properties exist and can you override them? public class Base { public virtual int MyProperty { get { return 0; } } } public class Derived : Base { public override int MyProperty...
  • Weitao Su's WebLog

    Formal type parameters of generic types (2).

    • 1 Comments
    Last time I blogged about the formal type parameters of generic types in reflection ( http://blogs.msdn.com/weitao/archive/2008/03/19/formal-type-parameters-of-generic-types.aspx ). Here I will present an example in Reflection.Emit. Reflection doesn...
  • Weitao Su's WebLog

    Formal type parameters of generic types.

    • 4 Comments
    I recently got a question on generic type identity. I will illustrate the question using this simple app: class Base <T> { } class Derived <T> : Base <T> { } class App { static void Main() { Console .WriteLine...
  • Weitao Su's WebLog

    Binding to hidden properties using Reflection

    • 4 Comments
    Thottam blogged about how C# and Reflection differ in binding to hidden properties: http://blogs.msdn.com/thottams/archive/2006/03/17/553376.aspx . So for the hidden properties you would not be able to bind to statically in C#, you can bind to them using...
Page 1 of 1 (7 items)