Click here to Skip to main content
15,889,909 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Creating Attributes At Run Time Pin
Markyg4-Nov-03 10:34
Markyg4-Nov-03 10:34 
GeneralRe: Creating Attributes At Run Time Pin
Roger Alsing4-Nov-03 3:52
Roger Alsing4-Nov-03 3:52 
GeneralWAN IP address Pin
marnicola3-Nov-03 13:10
marnicola3-Nov-03 13:10 
GeneralRe: WAN IP address Pin
Heath Stewart4-Nov-03 2:53
protectorHeath Stewart4-Nov-03 2:53 
GeneralRe: WAN IP address Pin
martiwy4-Nov-03 20:30
martiwy4-Nov-03 20:30 
GeneralRe: WAN IP address Pin
marnicola5-Nov-03 12:02
marnicola5-Nov-03 12:02 
GeneralRe: WAN IP address Pin
martiwy6-Nov-03 7:05
martiwy6-Nov-03 7:05 
GeneralRe: WAN IP address Pin
marnicola9-Nov-03 16:47
marnicola9-Nov-03 16:47 
Generalproblem Pin
bora3ee3-Nov-03 12:54
bora3ee3-Nov-03 12:54 
GeneralRe: problem Pin
Divyesh Virani3-Nov-03 19:39
Divyesh Virani3-Nov-03 19:39 
GeneralZ Buffer question in D3d 9 Pin
Arturo Mayorga3-Nov-03 12:09
Arturo Mayorga3-Nov-03 12:09 
GeneralRe: Z Buffer question in D3d 9 Pin
Kentamanos3-Nov-03 12:25
Kentamanos3-Nov-03 12:25 
GeneralRe: Z Buffer question in D3d 9 Pin
Heath Stewart4-Nov-03 3:09
protectorHeath Stewart4-Nov-03 3:09 
Generalusing variable declared in another class [NEWBIE] Pin
Paolo Ponzano3-Nov-03 8:57
Paolo Ponzano3-Nov-03 8:57 

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.