Browsing 7239 questions and answers with Jon Skeet
Yes, because this isn't a valid string literal: "C:\Users\Name\Desktop\FreeTTS\MBrola Project" You need to escape the backslashes: "C:\\Users\\Name\\Desktop\\FreeTTS\\MBrola Project" The string itself will only have the single... more 4/30/2014 7:40:53 PM
If you're only interested in writing the messages out, you could go really low level and use CodedOutputStream.writeBytes. It's not how I normally prefer to use protocol buffers, but that's a different matter. Fundamentally, the problem... more 4/30/2014 5:40:15 PM
Options: Build against a single DLL, and then just switch DLL contents (i.e. build both DLLs with the same name, and just change which version you use) Create a single interface with two different implementations, one of which talks to... more 4/30/2014 5:28:03 PM
You can use: var query = from e in db.Employees where e.Date_Leave == null && (department == null || e.EmpDept == department) && (searchTerm == null || /* something using... more 4/30/2014 3:09:53 PM
The simplest approach is probably to split the method into two, one of which is implemented via an iterator block and one of which isn't: public static IEnumerable<decimal> CalculateDeltas(this IEnumerable<decimal> sequence, ... more 4/30/2014 2:43:39 PM
You need the command itself - you're building it later: MySqlCommand cmdDataBase = new MySqlCommand(Query, conDataBase); Just move that higher, and then use: cmdDataBase.Parameters.AddWithValue(...); It's not clear why you're... more 4/30/2014 2:21:15 PM
No, you can't overload either constructors or methods by just varying access modifiers (or return types in the case of methods). You can only overload members if they have different signatures. more 4/30/2014 1:54:01 PM
I'm not sure why you're disabling 429, but you want to disable 0162 - that's the warning number you're getting: #pragma warning disable 0162 Always look for the specific warning number in the build output. (And of course, it's... more 4/30/2014 11:54:39 AM
You're not using generics (you're using a raw type instead), so the compiler has no idea what type of value is in the map - map.get(k) returns Object as far as the compiler is concerned, and there's no +(Object, int) operator. Just use... more 4/30/2014 9:42:32 AM
The hashing part is actually working fine - you're getting the same binary data in both cases - the only difference is that your output in the Javascript is in hex, rather than base64. This C# code: using System; class Test { static... more 4/30/2014 6:18:43 AM