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 DependencyId readOnlyCopy) { TypeDependencyId locReadOnlyCopy; CreateReadOnlyCopy(out locReadOnlyCopy); readOnlyCopy = locReadOnlyCopy; }
protected abstract void CreateReadOnlyCopy(out DependencyId readOnlyCopy);
public virtual bool Equals(DependencyId other) => this == other;
public sealed override bool Equals(DependencyId other) { return(base.Equals(other) || Equals(other as TypeDependencyId)); }