What does strongly typed means in .NET framework?

后端 未结 5 2265
悲哀的现实
悲哀的现实 2020-12-28 15:11

This morning was going through a book where I found a paragraph as stated below :

Each data field in a table is a strongly typed data member, fully compliant wit

5条回答
  •  情书的邮戳
    2020-12-28 15:58

    "fully compliant with .NET’s Common Type System" means that the data types are usable in any .NET language. So if you created a class that exposes a property in c# that is CTS compliant, that class can be consumed from say VB.net.

    "Each data field in a table is a strongly typed data member" means that you can rely on the type of the value in the table, and you would have to cast it to another type if that was required. You can't do implicit casting.

提交回复
热议问题