public SchemaMethod(IDecoder dec) { Dictionary <string, Object> map = dec.ReadMap(); Name = (string)map["name"]; ArgCount = (int)map["argCount"]; if (map.ContainsKey("desc")) { Description = (string)map["desc"]; } for (int x = 0; x < ArgCount; x++) { SchemaArgument arg = new SchemaArgument(dec, true); Arguments.Add(arg); if (arg.IsInput()) { InputArgCount += 1; } if (arg.IsOutput()) { OutputArgCount += 1; } if (arg.IsBidirectional()) { BidirectionalArgCount += 1; } } }
public SchemaMethod(IDecoder dec) { Dictionary<string, Object> map = dec.ReadMap() ; Name = (string) map["name"] ; ArgCount = (int) map["argCount"] ; if (map.ContainsKey("desc")) { Description = (string) map["desc"] ; } for (int x = 0 ; x < ArgCount ; x++) { SchemaArgument arg = new SchemaArgument(dec, true) ; Arguments.Add(arg) ; if (arg.IsInput()) { InputArgCount += 1 ; } if (arg.IsOutput()) { OutputArgCount += 1 ; } if (arg.IsBidirectional()) { BidirectionalArgCount += 1 ; } } }