What is Option Strict used for? - .NET

What is Option Strict used for?

- Option Strict On enables type checking at design time and prevents type mismatch bugs.
- It restricts implicit data type conversions to only widening conversions, disallows late binding, and disallows implicit typing that results in an Object type.

Syntax:

Option Strict { On | Off }

The following conditions cause a compile-time error when Option Strict On or Option Strict appears in a file:

1. Implicit narrowing conversions
2. Late binding
3. Implicit typing that results in an Object type
Boxing and Unboxing - .NET
ASP.NET - Boxing and Unboxing - Boxing allows you to treat a value type the same as a reference type....
What does WSDL stand for? Explain its purpose
ASP.NET - What does WSDL stand for? Explain its purpose....
Define ViewState in ASP.NET
ASP.NET - Define ViewState in ASP.NET - It allows the state of objects (serializable) to be stored in a hidden field on the page....
Post your comment