protected EffectModuleInstanceBase() { TargetNodes = new ElementNode[0]; TimeSpan = TimeSpan.Zero; IsDirty = true; _parameterValues = new DefaultValueArrayMember(this); _elementIntents = new ElementIntents(); }
protected EffectModuleInstanceBase() { _targetNodes = new ElementNode[0]; //set member directly on creation to prevent target node changed events from occuring. TimeSpan = TimeSpan.Zero; IsDirty = true; _parameterValues = new DefaultValueArrayMember(this); _elementIntents = new ElementIntents(); }
/// <inheritdoc /> protected override void Dispose(bool disposing) { if (disposing) { if (SupportsMarks && _markCollections != null) { _markCollections.CollectionChanged -= _markCollections_CollectionChanged; } _parameterValues = null; _markCollections = null; var md = ModuleData.ModuleDataSet as ModuleDataSet; md?.Dispose(); } base.Dispose(disposing); }