Click here to Skip to main content
15,905,144 members
Home / Discussions / C#
   

C#

 
GeneralRe: .net controls + longhorn? Pin
apferreira4-Nov-03 5:05
apferreira4-Nov-03 5:05 
GeneralRe: .net controls + longhorn? Pin
Kannan Kalyanaraman4-Nov-03 5:57
Kannan Kalyanaraman4-Nov-03 5:57 
GeneralRe: .net controls + longhorn? Pin
apferreira4-Nov-03 6:32
apferreira4-Nov-03 6:32 
GeneralClass Licensing...few more ?'s Pin
frank214-Nov-03 2:43
frank214-Nov-03 2:43 
GeneralRe: Class Licensing...few more ?'s Pin
Heath Stewart4-Nov-03 2:48
protectorHeath Stewart4-Nov-03 2:48 
GeneralClass not licensed for use error message Pin
frank214-Nov-03 2:25
frank214-Nov-03 2:25 
GeneralRe: Class not licensed for use error message Pin
Heath Stewart4-Nov-03 2:33
protectorHeath Stewart4-Nov-03 2:33 
GeneralpropertyName of System.ManagementObject Pin
kokain4-Nov-03 0:25
kokain4-Nov-03 0:25 
GeneralRe: propertyName of System.ManagementObject Pin
Kannan Kalyanaraman4-Nov-03 1:04
Kannan Kalyanaraman4-Nov-03 1:04 
GeneralRe: propertyName of System.ManagementObject Pin
Anonymous4-Nov-03 12:37
Anonymous4-Nov-03 12:37 
GeneralRe: propertyName of System.ManagementObject Pin
kokain4-Nov-03 20:49
kokain4-Nov-03 20:49 
QuestionHow to find an available port...!! Pin
Søren Christensen3-Nov-03 22:23
Søren Christensen3-Nov-03 22:23 
AnswerRe: How to find an available port...!! Pin
Heath Stewart4-Nov-03 2:45
protectorHeath Stewart4-Nov-03 2:45 
GeneralRe: How to find an available port...!! Pin
Søren Christensen4-Nov-03 4:30
Søren Christensen4-Nov-03 4:30 
GeneralC# Mail & Request Read Receipt Pin
Raj Warrier3-Nov-03 19:32
Raj Warrier3-Nov-03 19:32 
GeneralRe: C# Mail & Request Read Receipt Pin
Steve S4-Nov-03 1:33
Steve S4-Nov-03 1:33 
Questionhow to know a file is accessed by another process Pin
NotProfessional3-Nov-03 17:13
NotProfessional3-Nov-03 17:13 
AnswerRe: how to know a file is accessed by another process Pin
Heath Stewart4-Nov-03 3:20
protectorHeath Stewart4-Nov-03 3:20 
GeneralRe: Using ADO Recordset.AddNew in C# Pin
Heath Stewart4-Nov-03 3:03
protectorHeath Stewart4-Nov-03 3:03 
QuestionImage composition ?? Pin
azusakt3-Nov-03 14:26
azusakt3-Nov-03 14:26 
AnswerRe: Image composition ?? Pin
Christian Graus3-Nov-03 15:01
protectorChristian Graus3-Nov-03 15:01 
GeneralCreating Attributes At Run Time Pin
Markyg3-Nov-03 14:02
Markyg3-Nov-03 14:02 
Ok this may or may not be possible and if it's possible then it may be so easy to do that I go and hide under the covers of my bed for asking such a stupid question but here goes.

Is it possible to create Attriobutes at runtime for a method or function. The main reason I want to do this is that I want to create an Attribute class that will work in a similiar way to the Obselete Attribute class. So my first question is - how does the Obsolete attribute work so that during compilation it causes an error if a function that has been created with the Obsolete Attribute and is then called from elsewhere in the code.

Secondly is it possible within the constructor of my attribute class to create an instance of the Obsolete attribute class and for this to then work the same way as if I had placed the Obsolete Attribute before the method/class/variable.

Thirdly can you create an Attribute at run time that you can apply to a method, in a similiar way that you can access what Attributes have been applied to a method.

Please note that where I have used method in this text please replace with Method/Class/Variable etc.

Thanks in advance if anyone has any information on this,

Mark
GeneralRe: Creating Attributes At Run Time Pin
Mike Ellison4-Nov-03 2:51
Mike Ellison4-Nov-03 2:51 
GeneralRe: Creating Attributes At Run Time Pin
Heath Stewart4-Nov-03 3:00
protectorHeath Stewart4-Nov-03 3:00 
GeneralRe: Creating Attributes At Run Time Pin
Mike Ellison4-Nov-03 6:20
Mike Ellison4-Nov-03 6:20 

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.