Other Flashcards
1
Q
What is implicit typing?
A
The compiler infers the variable type without the need of specifying it when declaring a variable. e.g: var name = “Erikson”
2
Q
Does implicit type make C# a weak typed language?
A
No. Remains strongly typed as we can’t use vars to declare method and other places where the compiler can’t infer the var type.
3
Q
Can I use a var variable without assigning a value?
A
No.. once the compiler won’t be able to infer the variable type.
4
Q
What to do when you need to copy a file to the build/publish folder?
A
Go to the property of the file and select copy if newer