private void UpdateContainer(INotifyContainer notify, string propertyName) { if (!string.IsNullOrEmpty(propertyName)) { if (GetType().GetProperty(propertyName)?.GetCustomAttribute <ContainerPropertiesAffectedAttribute>() is ContainerPropertiesAffectedAttribute attribute) { if (notify != null) { notify.DoNotify(new NotifyContainerEventArgs(attribute.Names)); } } } }
public FileIO(int bufferSizeMax, INotifyContainer notifyContainer) { bufferSize = bufferSizeMax; buffer = new byte[bufferSize]; this.notifyContainer = notifyContainer; }