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”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly