您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
30 行
592 B
30 行
592 B
using System;
|
|
|
|
namespace HuaweiService
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
public class AddCustomTrace : Attribute
|
|
{
|
|
string m_name;
|
|
bool m_enable;
|
|
|
|
public AddCustomTrace(string name, bool enable = true){
|
|
m_name = name;
|
|
m_enable = enable;
|
|
}
|
|
|
|
public string name{
|
|
get{
|
|
return m_name;
|
|
}
|
|
}
|
|
public bool enable{
|
|
get{
|
|
return m_enable;
|
|
}
|
|
set{
|
|
m_enable = value;
|
|
}
|
|
}
|
|
}
|
|
}
|