using System;
using System.Collections.Generic;
using System.Text;
[AttributeUsage(AttributeTargets.Class |
AttributeTargets.Constructor |
AttributeTargets.Field |
AttributeTargets.Method |
AttributeTargets.Property,
AllowMultiple = true)]
public class BugFixAttribute : System.Attribute
{
public int BugID;
public string Date;
public string Programmer;
public string Comment;
public BugFixAttribute(int bugID,string programmer,string date){
this.BugID = bugID;
this.Programmer = programmer;
this.Date = date;
}
}
[BugFixAttribute(1, "B", "01/04/05",Comment = "value")]
public class MyMath
{
public double DoFunc1(double param1)
{
return param1 + DoFunc2(param1);
}
public double DoFunc2(double param1)
{
return param1 / 3;
}
}