javascript Programming Glossary: console.writeline
Create “Hello Wold” WebSocket example http://stackoverflow.com/questions/10200910/create-hello-wold-websocket-example buffer .Substring 0 i write received data to the console Console.WriteLine headerResponse if client null Handshaking and managing ClientSocket.. the message is received decode it in different formats Console.WriteLine Convert.ToBase64String buffer .Substring 0 i Console.WriteLine.. Convert.ToBase64String buffer .Substring 0 i Console.WriteLine n nPress enter to send data to client Console.Read var subA..
Getting SlowAES and RijndaelManaged class in .NET to play together http://stackoverflow.com/questions/1149611/getting-slowaes-and-rijndaelmanaged-class-in-net-to-play-together key IV Display the original data and the decrypted data. Console.WriteLine Original 0 original Console.WriteLine Round Trip 0 roundtrip.. decrypted data. Console.WriteLine Original 0 original Console.WriteLine Round Trip 0 roundtrip catch Exception e Console.WriteLine.. Round Trip 0 roundtrip catch Exception e Console.WriteLine Error 0 e.Message Watch of the byte array encrypted byte 16..
Decrypting with private key from .pem file in c# with .NET crypto library http://stackoverflow.com/questions/1162504/decrypting-with-private-key-from-pem-file-in-c-sharp-with-net-crypto-library elems elems GetIntegerSize binr IQ binr.ReadBytes elems Console.WriteLine showing components .. if verbose showBytes nModulus MODULUS..
Can I call application methods from JavaScript in Awesomium? http://stackoverflow.com/questions/13280727/can-i-call-application-methods-from-javascript-in-awesomium myMethodProvidingReturn 'foo' Console.WriteLine result.ToString private void JSHandler object sender JavascriptMethodEventArgs.. JavascriptMethodEventArgs args if args.MustReturnValue Console.WriteLine Got method call with return request args.Result Returning args.Arguments.. request args.Result Returning args.Arguments 0 else Console.WriteLine Got method call with no return request Version 1.6 Form.cs..
Custom JavaScriptConverter for DateTime? http://stackoverflow.com/questions/1341719/custom-javascriptconverter-for-datetime Birthday DateTime.Now string json serializer.Serialize p Console.WriteLine json Name User Name Birthday 12 20 2010 Person fromJson serializer.Deserialize.. 20 2010 Person fromJson serializer.Deserialize Person json Console.WriteLine String.Format 0 1 fromJson.Name fromJson.Birthday User Name..
parse and execute JS by C# http://stackoverflow.com/questions/4744105/parse-and-execute-js-by-c-sharp of what you can do with it 1 Direct expressions evaluation Console.WriteLine ScriptEngine.Eval jscript 1 2 3 will display 1.66666666666667.. parsed engine.Parse function MyFunc x return 1 2 x Console.WriteLine parsed.CallMethod MyFunc 3 Will display 6 3 Function call with.. item new MyItem item.Num 4 engine.SetNamedItem My item Console.WriteLine parsed.CallMethod MyFunc 3 ComVisible true Script engines are..
|