예제 #1
0
        // this is so we dont use ?. everywhere.
        // for null remoters the local object is always null
        public static ProjectElement Import(this MockProjectElementLinkRemoter remoter, ProjectCollectionLinker remote)
        {
            if (remoter == null)
            {
                return(null);
            }

            return(remoter.ImportImpl(remote));
        }
예제 #2
0
 public void RemoveChild(MockProjectElementLinkRemoter child)
 {
     this.ContainerXml.RemoveChild(child.Import(this.OwningCollection));
 }
예제 #3
0
 public void AddInitialChild(MockProjectElementLinkRemoter child)
 {
     ProjectElementContainerLink.AddInitialChild(this.ContainerXml, child.Import(OwningCollection));
 }
예제 #4
0
 public void InsertBeforeChild(MockProjectElementLinkRemoter child, MockProjectElementLinkRemoter reference)
 {
     this.ContainerXml.InsertBeforeChild(child.Import(OwningCollection), reference.Import(OwningCollection));
 }