Note that there are some explanatory texts on larger screens.

plurals
  1. USEdurne Pascual
    primarykey
    data
    text
    plurals
    1. COC# implements delegates, which allow passing (as arguments) and returning functions to other functions, without dealing with pointers. Furthermore, C# 3.0 introduced lambda expressions, which allow a compact representation of "on-the-fly" simple functions. Stuff like passing a comparer function to a sorting method is quite commonplace in recent C# code; and being able to pass it as somethig like (x,y) => x.SomeField.Compare(y.SomeField) (to compare values based on a given field) is really handy. To top it up, LINQ makes a quite original use of these techniques.
      singulars
    2. CO@Anurag: the size attribute is vaguely defined as "size in characters"; that's why it may vary from browser to browser. The CSS 'em' unit, if I recall correctly, is defined as the width of the character 'm' for the current applicable font (even if it applies to a text-less element, it will still have or inherit the font-related properties), which is unambiguous and consistent cross-browser (well, it should be, but *all* browsers have bugs according to the standards' specifications).
      singulars
    3. CO+1 for giving insight to the issue rather than just a quick-fix: this is much more useful for a newcomer to C# that is still learning the basics. I have two side comments, however: 1) Math is a static class (http://msdn.microsoft.com/en-us/library/system.math.aspx) so your suspicion is right: it can't be instantiated; and 2) maybe you should provide some example of instance methods... the ubiquitous ToString() comes to mind.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload