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

            CreateReadOnlyCopy(out locReadOnlyCopy);
            readOnlyCopy = locReadOnlyCopy;
        }
Exemplo n.º 3
0
 protected abstract void CreateReadOnlyCopy(out DependencyTarget readOnlyCopy);