Click here to Skip to main content
15,879,326 members
Home / Discussions / C#
   

C#

 
QuestionBest way of tracking remoting clients? Pin
Alex Korchemniy14-Jan-04 18:21
Alex Korchemniy14-Jan-04 18:21 
AnswerRe: Best way of tracking remoting clients? Pin
occcy14-Jan-04 21:22
occcy14-Jan-04 21:22 
GeneralRe: Best way of tracking remoting clients? Pin
Heath Stewart15-Jan-04 3:57
protectorHeath Stewart15-Jan-04 3:57 
AnswerRe: Best way of tracking remoting clients? Pin
Heath Stewart15-Jan-04 4:03
protectorHeath Stewart15-Jan-04 4:03 
GeneralRe: Best way of tracking remoting clients? Pin
Alex Korchemniy15-Jan-04 4:37
Alex Korchemniy15-Jan-04 4:37 
GeneralRe: Best way of tracking remoting clients? Pin
Heath Stewart15-Jan-04 9:41
protectorHeath Stewart15-Jan-04 9:41 
GeneralCustom Attributes Pin
pnolan14-Jan-04 13:53
pnolan14-Jan-04 13:53 
GeneralRe: Custom Attributes Pin
Heath Stewart15-Jan-04 3:55
protectorHeath Stewart15-Jan-04 3:55 
You can't modify attributes at runtime. You can, however, use an ICustomTypeDescriptor to return an array of attributes that you can create at runtime (note, this interface is only used by certain classes like the TypeDescriptor in System.ComponentModel).
See the documentation for ICustomTypeDescriptor.GetAttributes for more information.

If you use reflection instead of a TypeDescriptor to get attributes, you won't be able to change anything unless you programmatically create an attribute and add it to your array/list/collection.

Finally, if this is a custom attribute, you can give the attribute's property a set accessor as well, but this is to change only a property. This is highly NOT recommend, though, because attributes are meta-data that describe classes, etc. The attributes in the base class library don't allow such changes. If you need to modify values like this, you should consider a abstract or virtual property for a particular type that child classes can override, or using an interface for a good polymorphic design.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralI still didn't found what I was looking for - C# Service installation Pin
Pinho14-Jan-04 12:53
Pinho14-Jan-04 12:53 
GeneralRe: I still didn't found what I was looking for - C# Service installation Pin
Heath Stewart15-Jan-04 3:50
protectorHeath Stewart15-Jan-04 3:50 
GeneralNeed several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
FocusedWolf14-Jan-04 12:45
FocusedWolf14-Jan-04 12:45 
GeneralRe: Need several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
FocusedWolf14-Jan-04 12:50
FocusedWolf14-Jan-04 12:50 
GeneralNeed several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
FocusedWolf14-Jan-04 12:45
FocusedWolf14-Jan-04 12:45 
GeneralRe: Need several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
Heath Stewart15-Jan-04 3:44
protectorHeath Stewart15-Jan-04 3:44 
GeneralRe: Need several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
FocusedWolf15-Jan-04 17:43
FocusedWolf15-Jan-04 17:43 
GeneralTaskbar Grouping Icon and Text in Windows XP Pin
Sascha Sertel14-Jan-04 12:19
Sascha Sertel14-Jan-04 12:19 
GeneralRe: Taskbar Grouping Icon and Text in Windows XP Pin
Heath Stewart15-Jan-04 6:12
protectorHeath Stewart15-Jan-04 6:12 
GeneralDisplaying Multidimensional Arrays in a Form Pin
crushinghellhammer14-Jan-04 11:56
crushinghellhammer14-Jan-04 11:56 
GeneralRe: Displaying Multidimensional Arrays in a Form Pin
Christian Graus14-Jan-04 12:03
protectorChristian Graus14-Jan-04 12:03 
GeneralRe: Displaying Multidimensional Arrays in a Form Pin
Colin Angus Mackay14-Jan-04 12:07
Colin Angus Mackay14-Jan-04 12:07 
GeneralIsInputKey override for cursors not working Pin
cgcrute14-Jan-04 11:37
cgcrute14-Jan-04 11:37 
GeneralRe: IsInputKey override for cursors not working Pin
cgcrute14-Jan-04 21:42
cgcrute14-Jan-04 21:42 
General.NET remoting book Pin
naxos14-Jan-04 10:58
naxos14-Jan-04 10:58 
GeneralRe: .NET remoting book Pin
Giles14-Jan-04 11:14
Giles14-Jan-04 11:14 
GeneralRe: .NET remoting book Pin
Mohamad Al Husseiny14-Jan-04 19:34
Mohamad Al Husseiny14-Jan-04 19:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.