Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [MyAttribute("This code sux and should be looked at")]
- public sub DoEverything(){}
- [Obsolete("Should be refactored")]
- public class MustRefactor: System.Attribute{}
- #warning "Do not use ABC, which is deprecated. Use XYZ instead."
- #pragma message ( "text" )
- public void DoEverything() {
- #warning "This code sucks"
- }
- [Obsolete("Mapping ToDo")]
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
- public class MappingToDo : System.Attribute
- {
- public string Comment = "";
- public MappingToDo(string comment)
- {
- Comment = comment;
- }
- public MappingToDo()
- {}
- }
- [MappingToDo("Some comment")]
- public class MembershipHour : Entity
- {
- // .....
- }
Add Comment
Please, Sign In to add comment