Ryan McBeth
Ryan McBeth
@RyanMcBethProgramming·1.1M subscribers·1.8K videos

Is C# Statically, Strongly, Dynamically or Weakly Typed?

Posted

January 24, 2022

Views

1,902

Likes

134

Comments

16

Engagement

7.89%

Search the Record

Indexed

Every word spoken in this episode is indexed. Type any phrase to jump straight to the moment it was said.

Type any word or phrase that may have been spoken. Click a result to seek the player to that exact moment.

Try a name, a topic, or a quoted line

YouTube Description

as posted by the channel

The code for this example can be found at:

ryanmcbeth.com

Think of "Typing" as the "Nouns" of a computer programming language. Types help make sure that you don't do things that don't make sense, like divide a string by a boolean.

Strongly typed languages make sure that all types are checked at compile time. They are slower to compile but faster to run. C# is a Strongly typed language.

Dynamically typed languages have their types checked at runtime.

Statically typed languages don't have implicit conversions. Weakly typed languages have implicit conversions everywhere. C# is a Statically typed language.

The VAR keyword in C# is typed at compile time, not at run time. So its inclusion doesn't make C# dynamic.

The DYNAMIC keyword and turn off type checking at compile time in C# code, and it is mostly used for porting code from dynamic languages or allowing for the creation of new dynamic scripting languages.

Guests & Subjects Covered

The VARThe DYNAMIC

Sentinel Indexing in Progress

Metadata and chapters are available. Claim extraction for this episode is pending.

All video content is delivered via YouTube embedded players in accordance with the YouTube Terms of Service. Sentinel provides research tools that promote discovery and accountability across political media.

Is C# Statically, Strongly, Dynamically or Weakly Typed? · Ryan McBeth · Sentinel