Type.GetFields Method (BindingFlags)

This is a discussion on Type.GetFields Method (BindingFlags) within the C# Programming forums, part of the General Programming Boards category; Hello everyone, From MSDN about Type.GetFields Method (BindingFlags), http://msdn.microsoft.com/en-us/libr...dc(VS.80).aspx What means "When overridden in a derived class, searches for the ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    Type.GetFields Method (BindingFlags)

    Hello everyone,


    From MSDN about Type.GetFields Method (BindingFlags),

    http://msdn.microsoft.com/en-us/libr...dc(VS.80).aspx

    What means "When overridden in a derived class, searches for the fields defined for the current Type"? I can not find related description for this point in the MSDN related sample. Especially "overridden in a derived class" and "defined for the current Type"?


    thanks in advance,
    George

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Code:
    public abstract class A
    {
      public abstract void GetType();
    }
    
    public class B : A
    {
      public override void GetType(); //Defined for type B, overridden in a derived class
    }
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. on method pointers and inheritance
    By BrownB in forum C++ Programming
    Replies: 2
    Last Post: 03-02-2009, 06:50 PM
  2. Best communication method to thousand childs?
    By Ironic in forum C Programming
    Replies: 8
    Last Post: 11-07-2008, 11:30 PM
  3. C# method
    By siten0308 in forum C# Programming
    Replies: 6
    Last Post: 07-15-2008, 07:01 AM
  4. Overriding a method in C
    By DavidDobson in forum C Programming
    Replies: 1
    Last Post: 07-05-2008, 07:51 AM
  5. Replies: 2
    Last Post: 01-22-2008, 03:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21