From the course: CLR Bytecode for Developers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Properties demo

Properties demo

From the course: CLR Bytecode for Developers

Start my 1-month free trial

Properties demo

- [Instructor] So here back looking at the ICallMe interface defined right up here here is HelloWorld.ICallMe and recall that we declared one read only property on this interface specifically we declared that the property was called Name, And it was of type string. Now again it was an instance property because interfaces instances those two pretty much go hand in hand, but notice the .properties syntax here indicates that this is an instance of type sting called Name. So now anywhere inside of code, if somebody references and object that implements the ICallMe interface and the reference the .Name number the idea is that if it is a read scenario where they are in fact trying to obtain this, whatever that looks like in that particular language they are doing a get. So the .get syntax here says that this will map to the HelloWord.ICallMe::get_Name method. Now in this particular case when we are looking at IL frequently when IL synthesizes a method or so forth they will use underscores…

Contents