Ejemplo n.º 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");
        }
Ejemplo n.º 2
0
 public SelectionType(string name, ISmiType subtype)
 {
     Name = name;
     Subtype = subtype;
 }
Ejemplo n.º 3
0
 public ValueAssignment(ISmiType smiType, ISmiValue smiValue)
 {
     SmiType = smiType;
     SmiValue = smiValue;
 }
Ejemplo n.º 4
0
 public TypeOrValue(ISmiType type)
 {
     
 }
 public ComponentsOfElementType(ISmiType type)
 {
 }
Ejemplo n.º 6
0
 public SelectionType(string name, ISmiType subtype)
 {
     Name    = name;
     Subtype = subtype;
 }
Ejemplo n.º 7
0
 public ExceptionSpec(ISmiType smiType, ISmiValue value)
 {
     
 }
Ejemplo n.º 8
0
 public ComponentsOfElementType(ISmiType type)
 {
     
 }
Ejemplo n.º 9
0
 public TypeOrValue(ISmiType type)
 {
 }
 public ValueAssignment(ISmiType smiType, ISmiValue smiValue)
 {
     SmiType  = smiType;
     SmiValue = smiValue;
 }
Ejemplo n.º 11
0
 public ExceptionSpec(ISmiType smiType, ISmiValue value)
 {
 }