コード例 #1
0
        internal static string Default(ISmiType type)
        {
            if (type is IntegerType)
            {
                return("new Integer32(0)");
            }

            if (type is Counter32Type)
            {
                return("new Counter32(0)");
            }

            if (type is Counter64Type)
            {
                return("new Counter64(0)");
            }

            if (type is Gauge32Type)
            {
                return("new Gauge32(0)");
            }

            if (type is TimeTicksType)
            {
                return("new TimeTicks(0)");
            }

            if (type is OctetStringType)
            {
                return("OctetString.Empty");
            }

            if (type is ObjectIdentityMacro || type is ObjectIdentifierMacro)
            {
                return("new ObjectIdentifier(\".0.0\")");
            }

            if (type is IpAddressType)
            {
                return("new IP(\"127.0.0.1\")");
            }

            return("null");
        }
コード例 #2
0
 public SelectionType(string name, ISmiType subtype)
 {
     Name = name;
     Subtype = subtype;
 }
コード例 #3
0
 public ValueAssignment(ISmiType smiType, ISmiValue smiValue)
 {
     SmiType = smiType;
     SmiValue = smiValue;
 }
コード例 #4
0
ファイル: TypeOrValue.cs プロジェクト: xxjeng/nuxleus
 public TypeOrValue(ISmiType type)
 {
     
 }
コード例 #5
0
 public ComponentsOfElementType(ISmiType type)
 {
 }
コード例 #6
0
 public SelectionType(string name, ISmiType subtype)
 {
     Name    = name;
     Subtype = subtype;
 }
コード例 #7
0
ファイル: ExceptionSpec.cs プロジェクト: xxjeng/nuxleus
 public ExceptionSpec(ISmiType smiType, ISmiValue value)
 {
     
 }
コード例 #8
0
 public ComponentsOfElementType(ISmiType type)
 {
     
 }
コード例 #9
0
 public TypeOrValue(ISmiType type)
 {
 }
コード例 #10
0
 public ValueAssignment(ISmiType smiType, ISmiValue smiValue)
 {
     SmiType  = smiType;
     SmiValue = smiValue;
 }
コード例 #11
0
 public ExceptionSpec(ISmiType smiType, ISmiValue value)
 {
 }