Other Flashcards Preview

.NET / C# > Other > Flashcards

Flashcards in Other Deck (4)
Loading flashcards...
1

What is implicit typing?

The compiler infers the variable type without the need of specifying it when declaring a variable. e.g: var name = "Erikson"

2

Does implicit type make C# a weak typed language?

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

Can I use a var variable without assigning a value?

No.. once the compiler won't be able to infer the variable type.

4

What to do when you need to copy a file to the build/publish folder?

Go to the property of the file and select copy if newer