PC Review


Reply
Thread Tools Rate Thread

Custom Attribute to cause Compile Errors/Warnings

 
 
=?Utf-8?B?SW5jdWJvdA==?=
Guest
Posts: n/a
 
      7th Feb 2005
Hi I'd like to create an attribute similar to ObsoleteAttribute, that would
cause a compile warning or error. Can anyone help me out on this?
thanks

 
Reply With Quote
 
 
 
 
Richard Grimes [MVP]
Guest
Posts: n/a
 
      11th Feb 2005
Incubot wrote:
> Hi I'd like to create an attribute similar to ObsoleteAttribute, that
> would cause a compile warning or error. Can anyone help me out on
> this?


To do that you would have to rewrite the compiler. The SSCLI (Rotor) has
source code for the C# compiler and is one place you can start.

Richard
--
www.richardgrimes.com
my email (E-Mail Removed) is encrypted with ROT13 (www.rot13.org)


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable specific compile warnings in a web application? badkarspiloten@hotmail.com Microsoft Dot NET 2 3rd Oct 2006 07:18 AM
Custom compile-time errors and warnings Glen Microsoft C# .NET 2 7th Nov 2004 04:27 PM
compile error after defining custom attribute Harry F. Harrison Microsoft VB .NET 2 21st Jun 2004 09:19 PM
attribute warnings diana Windows XP Performance 2 5th Jun 2004 05:41 AM
Custom attribute applying another attribute Andrew Roberts Microsoft Dot NET Framework 1 4th Sep 2003 06:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:47 AM.