Dynamic Objects in C#

Опубликовано: 01 Август 2021
на канале: Build with latest
6,897
61

C# 4 introduces a new type, dynamic. The type is a static type, but an object of type dynamic bypasses static type checking. In most cases, it functions like it has type object. At compile time, an element that is typed as dynamic is assumed to support any operation. Therefore, you do not have to be concerned about whether the object gets its value from a COM API, from a dynamic language such as IronPython, from the HTML Document Object Model (DOM), from reflection, or from somewhere else in the program. However, if the code is not valid, errors are caught at run time.

Dynamic objects expose members such as properties and methods at run time, instead of at compile time. This enables you to create objects to work with structures that do not match a static type or format.

https://docs.microsoft.com/en-us/dotn...


На этой странице сайта вы можете посмотреть видео онлайн Dynamic Objects in C# длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Build with latest 01 Август 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 6,897 раз и оно понравилось 61 зрителям. Приятного просмотра!