示例#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;
 }
示例#2
0
        protected sealed override void CreateReadOnlyCopy(out DependencyTarget readOnlyCopy)
        {
            NewInstanceDependencyTarget locReadOnlyCopy;

            CreateReadOnlyCopy(out locReadOnlyCopy);
            readOnlyCopy = locReadOnlyCopy;
        }
示例#3
0
 protected abstract void CreateReadOnlyCopy(out DependencyTarget readOnlyCopy);