Browsing 7239 questions and answers with Jon Skeet
Well, you can use a ClassMask, if you don't mind "sub-namespaces" being excluded too. Suppose you want to expose Foo.Bar, you could have: <FilterEntry> <ClassMask>Foo.Bar.*</ClassMask> </FilterEntry> If you... more 9/25/2017 2:05:22 PM
A read-only automatically-implemented property is converted by the compiler into a read-only field and a read-only property. Assignments to the property in the constructor are compiled as assignments to the underlying field. So your code... more 9/23/2017 4:01:34 PM
Sounds like you should convert it into a TimeSpan and then format that: using System; class Test { static void Main() { float totalSeconds = 228.10803f; TimeSpan time = TimeSpan.FromSeconds(totalSeconds); ... more 9/23/2017 12:33:24 PM
You've got it within double-quotes, which means it isn't a placeholder - it's just part of the value. Beyond that, most SQL databases don't let you use parameters for things like table names and column names - only values can be... more 9/22/2017 5:17:03 PM
You're using M as the month format specifier, but M is a number/text field, so it's expecting a numeric value. I also suspect you mean HH:mm:ss rather than H:m:s for the time part, and yyyy for the year. (The latter is unlikely to be a... more 9/22/2017 4:04:52 PM
I'd first rename the types (and enum values) to follow .NET naming conventions and to indicate that the struct represents a single monster. It's unfortunate IMO that mutable structs are common in Unity, but I'll leave that part aside. I'd... more 9/22/2017 3:32:55 AM
Those two lines are somewhat equivalent. The first uses auto-boxing. It's actually directly equivalent to: intArr[1] = Integer.valueOf(1); The difference is that this can reuse references to the same Integer object multiple times,... more 9/20/2017 7:07:58 AM
Your second approach needs to internally build a new HashSet for each season, comparing the actors in that season with all the actors we've seen before - I'd expect that to be slower than doing a single pass over all actors, putting them... more 9/19/2017 2:06:37 PM
Now we've got more of the Java code, we can see the problem: you've got an extra layer of serialization around your real data. That has nothing to do with compression really. Here's an example to show what I mean: import... more 9/19/2017 12:18:45 PM
The first problem is that you're just calling Descendants("Dialog"), Descendants("CallVariables") etc. Those look for elements in the global namespace - but all the elements you're looking for are actually in a namespace of... more 9/16/2017 9:58:59 AM