コード例 #1
0
        ResolvedImport Import(ProjectCollectionLinker importer)
        {
            var importElement  = (ProjectImportElement)importer.Import <ProjectElement, MockProjectImportElementLinkRemoter>(this.ImportingElement);
            var projectElement = (ProjectRootElement)importer.Import <ProjectElement, MockProjectRootElementLinkRemoter>(this.ImportedProject);

            return(importer.LinkFactory.Create(importElement, projectElement, 0, this.SdkResult, this.IsImported));
        }
コード例 #2
0
ファイル: CollectionsHelpers.cs プロジェクト: yazici/msbuild
        public static IList <T> ImportCollection <T, RMock>(this ProjectCollectionLinker importer, IEnumerable <RMock> source)
            where T : class
            where RMock : MockLinkRemoter <T>, new()
        {
            if (source == null)
            {
                return(null);
            }
            // Just copy ...
            List <T> result = new List <T>();

            foreach (var sRemoter in source)
            {
                var s = importer.Import <T, RMock>(sRemoter);
                result.Add(s);
            }

            return(result);
        }
コード例 #3
0
ファイル: CollectionsHelpers.cs プロジェクト: yazici/msbuild
        public static IDictionary <key, T> ImportDictionary <key, T, RMock>(this ProjectCollectionLinker importer, IDictionary <key, RMock> source)
            where T : class
            where RMock : MockLinkRemoter <T>, new()
        {
            if (source == null)
            {
                return(null);
            }
            // Just copy ...
            Dictionary <key, T> result = new Dictionary <key, T>();

            foreach (var sRemoter in source)
            {
                var value = importer.Import <T, RMock>(sRemoter.Value);
                result.Add(sRemoter.Key, value);
            }

            return(result);
        }
コード例 #4
0
 public override ProjectElement ImportImpl(ProjectCollectionLinker remote)
 {
     return(remote.Import <ProjectElement, MockProjectExtensionsElementLinkRemoter>(this));
 }
 public override ProjectElement ImportImpl(ProjectCollectionLinker remote)
 {
     return(remote.Import <ProjectElement, MockProjectUsingTaskParameterElementLinkRemoter>(this));
 }
コード例 #6
0
 public override ProjectElement ImportImpl(ProjectCollectionLinker remote)
 {
     return(remote.Import <ProjectElement, MockProjectItemDefinitionGroupElementLinkRemoter>(this));
 }