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"); }
public SelectionType(string name, ISmiType subtype) { Name = name; Subtype = subtype; }
public ValueAssignment(ISmiType smiType, ISmiValue smiValue) { SmiType = smiType; SmiValue = smiValue; }
public TypeOrValue(ISmiType type) { }
public ComponentsOfElementType(ISmiType type) { }
public ExceptionSpec(ISmiType smiType, ISmiValue value) { }