Browsing 7239 questions and answers with Jon Skeet
Does the value of Calendar.get(Calendar.DAY_OF_WEEK) change based on any value change of Calendar.getFirstDayOfWeek() No. Sunday is Sunday (Calendar.SUNDAY), regardless of whether that's the first day of the week, the second or the... more 8/9/2015 5:28:21 PM
You're calling AddWithValue, but not providing the value - you're providing the type. Additionally, you're not providing an array - you're just providing a single string. I suspect you just want: command.Parameters.Add("@participants",... more 8/8/2015 8:50:51 AM
Your method is declared to return object - but you know it's a Polygon, so assuming you want callers to rely on it returning a Polygon (which seems reasonable) you should change the return type. public Polygon Hexagon() You also need to... more 8/8/2015 7:01:11 AM
No, there isn't. ToList creates a List<T> - and there's no way of casting a plain List<T> to a TestObjectCollection without creating a new TestObjectCollection. Personally I'd avoid creating a collection deriving from... more 8/7/2015 2:38:34 PM
This is a field-like event. It's a bit like an automatically-implemented property - the C# compiler provides the implementation. (I'd prefer it if the syntax were more like automatically implemented properties, but that's a different... more 8/7/2015 2:02:18 PM
No, char and Character can't represent a code point outside the BMP. There's no specific type for this, but all the Java APIs just use int to refer to code points specifically as opposed to UTF-16 code units. If you look at all the... more 8/7/2015 12:50:29 PM
Assuming you're actually interested in instants and durations (i.e. nothing to do with periods, dates, time zones etc) then your code should be fine. I'd actually go into milliseconds earlier in this case... the maths is all simple... more 8/7/2015 11:59:04 AM
A List<Group> is not a List<Store>. However, you can use a type argument to the ToList method to make it create a List<Store> instead: NextPrevious(model.Group.ToList<Store>(), ...) That's assuming you're using... more 8/7/2015 11:40:25 AM
It sounds like your path is inappropriate, basically. If you open the "Developer Command Prompt for VS2015" you should have $ProgramFiles(x86)$\MSBuild\14.0\bin early in your path - and the csc.exe in there is Roslyn. I suspect you're... more 8/7/2015 10:54:06 AM
The only time I can think of it being useful is if you're actually going to treat it as a list of delegates (via Delegate.GetInvocationList), and invoke each one separately. You could do that for validators, for example - where each... more 8/7/2015 10:13:41 AM