Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 14084

C# is a multi-paradigm, managed, garbage-collected, object-oriented programming language created by Microsoft in conjunction with the .NET platform. Use this tag for questions related to C#. In case a specific version of the framework is used, you could also include that tag; for instance .net-2.0.

6 votes
2 answers
5k views

Mapping ReadOnlyObservableCollection to another collection

I'm writing a WPF application and I have several ReadOnlyObservableCollection fields in my models. Suppose that I wanted to create a FooViewModel instance for each FooModel instance. FooModel has an …
luiscubal's user avatar
  • 1,283
1 vote

Refactor LINQ & XML code

This is what you could do: Try to bring order to the chaos of field numbers. For instance, associate 'F12' to 'Year 2010, Quarter 1'. This is essential to reduce code duplication. Fortunately, the f …
luiscubal's user avatar
  • 1,283
2 votes
Accepted

Simple way to decrement number within a repeating range

Some thoughts: (i + x) % x == i //For i >= 0 && i < x Then (i + x - 1) % x Gives us the range from 0 to x-1. We want the range from 1 to x so we change this to: (i + x - 2) % x + 1; But I don …
luiscubal's user avatar
  • 1,283
6 votes
Accepted

Checking if vector is normalized

This seems ok, depending on how precise you want it to be (some margin of error will always be needed since this is floating-point, but how much will depend on your needs) Alternatively, you could ch …
luiscubal's user avatar
  • 1,283