tagged [var]

PHPDoc type hinting for array of objects?

PHPDoc type hinting for array of objects? So, in PHPDoc one can specify `@var` above the member variable declaration to hint at its type. Then an IDE, for ex. PHPEd, will know what type of object it's...

18 Sep at 17:42

Will using 'var' affect performance?

Will using 'var' affect performance? Earlier I asked a question about [why I see so many examples use the varkeyword](https://stackoverflow.com/questions/335682/mvc-examples-use-of-var) and got the an...

23 May at 12:3

What advantages does using var have over the explicit type in C#?

What advantages does using var have over the explicit type in C#? > [What’s the point of the var keyword?](https://stackoverflow.com/questions/209199/whats-the-point-of-the-var-keyword) [Use of var ...

23 May at 11:33

Why does ReSharper want to use 'var' for everything?

Why does ReSharper want to use 'var' for everything? I've just started using ReSharper with Visual Studio (after the many recommendations on SO). To try it out I opened up a recent ASP.NET MVC project...

29 Jan at 19:46

Make var_dump look pretty

Make var_dump look pretty I have a simple `$_GET[]` query var set for showing testing data when pulling down queries from the DB. ``` MLS QUE

9 Nov at 21:58

Does C# pick the wrong type for var when parsing a dynamic object?

Does C# pick the wrong type for var when parsing a dynamic object? I am using the following code to convert some Json into a dynamic object. When I use DateTime.Parse on a property of my dynamic type ...

21 Feb at 16:57

What is the purpose of 'var'?

What is the purpose of 'var'? > [What's the point of the var keyword?](https://stackoverflow.com/questions/209199/whats-the-point-of-the-var-keyword) I'm asking how it works. I am asking if it affec...

23 May at 12:17

javascript- Uncaught SyntaxError: Identifier * has already been declared

javascript- Uncaught SyntaxError: Identifier * has already been declared ==================== both above code snippets are sam

23 Oct at 11:18

Use of var keyword in C#

Use of var keyword in C# After discussion with colleagues regarding the use of the 'var' keyword in C# 3 I wondered what people's opinions were on the appropriate uses of type inference via var? For e...

3 Feb at 03:25