Jump to: navigation, search

Changes


Internal:Coding Practices

292 bytes added, 11:39, 16 October 2015
</syntaxhighlight>
=== Actions should be executed for objects of a certain MetaClass? ===
If certain actions should only be executed for objects having a specific type, use the <code>is</code> keyword.
<syntaxhighlight lang="csharp">
//do something
}
</syntaxhighlight>
 
=== Get the object linked in a Reference property ===
Objects linked within a Reference property should be accessed using the <code>GetLinkedObject</code> method.
<syntaxhighlight lang="csharp">
BaseClass myLinkedObject = obj.GetLinkedObject("NameOfReferenceProperty");
</syntaxhighlight>
[[Category:Best Practices (internal)|Coding Practices]]
10,686
edits