setReferencesForOne static method
Sets references to specific component.
To set references components must implement IReferenceable interface. If they don't the call to this method has no effect.
references
the references to be set.component
the component to set references to.
See IReferenceable
Implementation
static void setReferencesForOne(IReferences references, component) {
if (component is IReferenceable) component.setReferences(references);
}