private static void binarytest() { byte[] cc = new byte[] { 0xf4, 0x0e, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x03, 0x07, 0x00 }; string node = "Foo"; IBinaryParser binaryParser = null; foreach (Assembly currentassembly in AppDomain.CurrentDomain.GetAssemblies()) { Type t = currentassembly.GetType("ConsoleParser." + node + "." + node + "BinaryParser", false, true); if (t != null) { binaryParser = (IBinaryParser)Activator.CreateInstance(t); break; } } Console.WriteLine(binaryParser != null); var text = binaryParser.Process(5, cc); Console.WriteLine(text != ""); }
internal BinaryParserQueryContext(IBinaryParser <TResult> parser, TQueryValue value) { Contract.Requires(parser != null); this.parser = parser; this.queryValue = value; }