Browsing 7239 questions and answers with Jon Skeet
You're not closing (and therefore flushing) the zip stream until after you've uploaded it. I suspect that may well be the problem. Move this line to after the using statement that creates/uses/closes the GZipStream: FTPPut(ftpPutPath,... more 12/3/2014 10:51:27 PM
Either you create a concrete class which doesn't override the method, or within a concrete class which does override the method, you can call super.t1(). For example: void t1() { super.t1(); // First call the superclass... more 12/3/2014 6:53:56 PM
.000+05:30 is getting added to the dateTime object No, it's included in the result of dateTime.toString(), that's all. A DateTime value doesn't have any concept of its own format - it's just a date/time/calendar/zone. If you want to... more 12/3/2014 6:30:36 PM
I suspect you want something like: List<Dictionary<string, string>> result; using (var db = new ExampleDB()) { result = db.FormField .Where(r => r.Form_id == 1) .GroupBy(r =>... more 12/3/2014 6:24:47 PM
I don't understand why. Because you need to tell the compiler that you're trying to write an async method. That's exactly what the document you're quoting means. The compiler could infer that from whether or not your method includes... more 12/3/2014 6:14:56 PM
I just wanted to understand if we are creating any additional threads that is responsible for this task threads? Yes - from the documentation: Corresponding to each Timer object is a single background thread that is used to... more 12/3/2014 6:10:30 PM
If you want two forms, create two forms - two independent objects - by calling the constructor twice: Form formA = new LoginForm(); Form formB = new LoginForm(); Now they're independent objects. Note that there's nothing winforms... more 12/3/2014 5:47:17 PM
C# will happily add together a string and any user defined object. Is there a way to turn this into a warning or a compilation error? Yes - if you're using Visual Studio 2015 or higher :) You can use Roslyn to create your own code... more 12/3/2014 9:28:36 AM
Is there a way to circumvent this issue? Yes - you cast it: foreach (A a in listA) { if (a.GetType().ToString() == "Test.B") { listA.Remove(a); listB.Add((B) a); } } That will compile, but it's still... more 12/3/2014 7:26:35 AM
It looks like you're blocking the UI thread in the loop - when you call accept(), that's going to wait for a new connection, which means the UI thread can't repaint the UI. You should do that in a separate thread. All UI interactions... more 12/3/2014 7:16:32 AM