Browsing 7239 questions and answers with Jon Skeet
I want to know if memory from arr[30] to arr[49] would already have been reclaimed by garbage collector at the line which has the comment? No, absolutely not. The array is a single object. It's either reachable, or it's not... more 7/15/2016 8:23:36 AM
If the array remembers what type of data it contains, it means that it KNEW the type of data it contains. At execution time, yes... just like at execution time, the type of an object is known: Object x = "foo"; // The compiler won't... more 7/15/2016 8:20:14 AM
If you look at the lock file, you'll see that it contains details of the exact version of each dependency that was restored, transitively. This "locks" that set of versions until dotnet restore is run again. I believe the aim at least was... more 7/15/2016 7:48:20 AM
However, when converting the String array (each element containing one byte) back into a byte array, it tells me that I can't convert a String (or Integer when I tried Integer.parseInt) into a byte object. Any idea what's... more 7/15/2016 2:05:24 AM
Yes, that's because your enum is effectively: public enum MyStatus { None = 78, Done = 67 } So "N" is neither the name of an enum value, nor is it the decimal representation. Both "None" and "78" would parse to MyStatus.None,... more 7/14/2016 4:57:11 PM
Well that just sounds like you're getting different default encodings when running in different ways - which is somewhat to be expected. Just specify the encoding when you convert the text to binary: byte[] bytes =... more 7/14/2016 6:11:30 AM
I suspect that ObjectInputStream simply isn't designed for this sort of use. In order to maintain referential integrity, I suspect there's an internal counter for "object number X that I've written to the stream" which is increased as... more 7/13/2016 12:56:28 PM
This is currently a limitation in gRPC 0.15, which Google.Pubsub.V1 uses as its RPC transport. Under msbuild, the build/net45/Grpc.Core.targets file in the Grpc.Core package copies all the native binaries into place. Under DNX, the... more 7/13/2016 10:34:21 AM
You need an assembly binding redirect. For example, in your web.config file: <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity... more 7/13/2016 9:31:18 AM
b was created using a and a has now been set to null. You've misunderstood what this line does: B b =(B)a; That copies the current value of a as the initial value of b. That's all it does. The two variables are then entirely... more 7/13/2016 8:15:10 AM