User Profile

Collapse

Profile Sidebar

Collapse
TomGo
TomGo
Last Activity: Aug 25 '09, 08:13 AM
Joined: Apr 2 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • TomGo
    started a topic Access field attribute by object instance

    Access field attribute by object instance

    Hi All

    How can I access to the attribute of a field by an object to whom this field references to.

    I have defined:
    Code:
    class A
    {
    [MyAttrib(Name="TestA";)]
    private Bb testing1 = new Bb();
    
    [MyAttrib(Name="TestB";)]
    private Bb testing2 = new Bb();
    }
    Now I want to access to 'MyAttrib' within class Bb in the following way:...
    See more | Go to post

  • TomGo
    started a topic Read Field Attributes by Referenced Instance

    Read Field Attributes by Referenced Instance

    Hi All

    I want to read out the properties of a field by the instance, which is referenced by the corresponding field. I want to read out the attributes.

    In a class I wrote the following:
    Code:
    class A
    {
         [MyAttrib(Name="TestA";)]
         private Bb testing1 = new Bb();
    
         [MyAttrib(Name="TestB";)]
         private Bb testing2 = new Bb();
    }
    ...
    See more | Go to post
No activity results to display
Show More
Working...