public DependencyBinding(DependencyId dependencyId = default, DependencyTarget target = default, bool isReadOnly = default) : base(isReadOnly : isReadOnly) { // _dependencyId = isReadOnly ? dependencyId?.AsReadOnly() : dependencyId; _target = isReadOnly ? target?.AsReadOnly() : target; }
protected sealed override void CreateReadOnlyCopy(out DependencyTarget readOnlyCopy) { NewInstanceDependencyTarget locReadOnlyCopy; CreateReadOnlyCopy(out locReadOnlyCopy); readOnlyCopy = locReadOnlyCopy; }
protected abstract void CreateReadOnlyCopy(out DependencyTarget readOnlyCopy);