Just started learning C# (in xaml), so appreciate some elaboration:
((MSAvalon.Windows.Serialization.ILoaded)(_Text_2_)).DeferLoad();
Not sure what all the round brackets means… does it mean “_Text_2_” is a child of object “MSAvalon.Windows.Serialization.ILoaded” ?
and if so… why not just something like:
MSAvalon.Windows.Serialization.ILoaded._Text_2.DeferLoad();
This is a typecast, used to tell the compiler that a variable is of a particular type when it’s not obvious. It could have been used like this:
Leaving out the typecast here would cause a compiler error, since
DeferLoadis not a method ofobject. You’re telling the compiler here that you have some special knowledge that_Text_2_is really what you say it is.