What is typing discipline

0 votes
C# typing discipline is described by Wikipedia as: static, dynamic, strong, safe, nominative, partially inferred

What is the definition of typing discipline? What do those terms mean, and how do they connect to language?
Jun 11, 2022 in C# by krishna
• 2,820 points
1,115 views

1 answer to this question.

0 votes

Wikipedia's typing discipline relates to the type system employed by C# (just try clicking the link, it will lead you to the Type System article).

What they imply is as follows:

Static - At compilation time, the types are determined (the compiler wants to know the type before it runs)

Dynamic - Types are determined at runtime (in C#, this is made easier by the dynamic keyword, which was introduced in C# 4.0).

Safe - The language doesn't allow you to break any of the type rules. Without a cast declared, you can't add strings into a list of complex types, for example.

Powerful - Take a look at Eric Lippert's article on the subject rather than me trying to explain it.

Nominative - Type equivalence is determined by the type's name (what this means is that two types with the same fields but different names are treated as different types)

Partially inferred - During compile-time, the compiler can assume the type you're referring to (this is the var keyword in C#, which allows you to not define the type in your code, but it's still determined in a static and strong fashion at compile-time).

answered Jun 14, 2022 by jyoti
• 1,240 points

Related Questions In C#

0 votes
1 answer

What is the best C# to VB.net converter

Telerik has a solid SharpDevelop-based converter that ...READ MORE

answered May 30, 2022 in C# by rajiv
• 1,620 points
1,590 views
0 votes
1 answer

What is the difference between C# and .NET?

C# is a programming language, and.NET refers ...READ MORE

answered Jun 7, 2022 in C# by pranav
• 2,590 points
684 views
0 votes
1 answer

What is cool about generics, why use them

Okay. For simplification, I am listing it ...READ MORE

answered Jun 23, 2022 in C# by krishna
• 2,820 points
494 views
0 votes
0 answers

What is the { get; set; } syntax in C#

I'm learning ASP.NET MVC, and while I ...READ MORE

Jun 11, 2022 in C# by krishna
• 2,820 points
337 views
0 votes
3 answers

Trying to upload files using Selenium(C#)

You can try using Javascript Executor to ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 28,140 points
5,716 views
0 votes
1 answer

Deploy my Windows 10 IOT core application locally!

Of course, you, can! That is, in ...READ MORE

answered Jul 17, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,109 views
+6 votes
16 answers

How do backend of these really cool games work?

Most of the games these days don't ...READ MORE

answered Jul 19, 2018 in Career Counselling by Kalgi
• 52,350 points
11,294 views
0 votes
1 answer

SQLite.Net not being able to create text file in Win IoT Library!

That exception comes when access limited to ...READ MORE

answered Aug 3, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,003 views
0 votes
1 answer

What is LINQ and what does it do

LINQ or Language Integrated Query may refer to: a ...READ MORE

answered Jun 21, 2022 in C# by jyoti
• 1,240 points
477 views
0 votes
1 answer

What is the difference between a field and a property

The internal workings of a class should ...READ MORE

answered Jun 21, 2022 in C# by jyoti
• 1,240 points
637 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP