Пример #1
0
 public IEnumerator <W> GetEnumerator()
 {
     foreach (L item in this.InnerList)
     {
         yield return(BaseWrapper.Wrap <W>(item));
     }
 }
Пример #2
0
        public static ComponentWrapper GetComponentWrapper(BaseWrapper wrapper, ComponentTypeWrapper type)
        {
            ComponentWrapper component = BaseWrapper.Wrap <ComponentWrapper>(new MFComponent((MFComponentType)type, wrapper.InnerName, wrapper.InnerGuid, wrapper.InnerProjectPath, wrapper.InnerConditional));

            component.Groups             = wrapper.InnerGroups;
            component.InnerComponentType = wrapper.GetType();
            return(component);
        }
Пример #3
0
 private CollectionWrapper(IList <L> list)
 {
     this.InnerList = list;
     foreach (L item in InnerList)
     {
         BaseWrapper.Wrap <W>(item);
     }
 }
Пример #4
0
        public static BuildFileWrapper GetWrapper(string Path, string Name, string Condition)
        {
            MFBuildFile buildFile = new MFBuildFile();

            buildFile.File      = Path;
            buildFile.ItemName  = Name;
            buildFile.Condition = Condition;
            return(BaseWrapper.Wrap <BuildFileWrapper>(buildFile));
        }
Пример #5
0
        public void CopyTo(W[] array, int arrayIndex)
        {
            List <W> copyList = new List <W>();

            foreach (L item in this.InnerList)
            {
                copyList.Add(BaseWrapper.Wrap <W>(item));
            }
            copyList.CopyTo(array, arrayIndex);
        }
Пример #6
0
 public BuildToolWrapper_ FindBuildToolByName(string buildToolName)
 {
     //FindBuildToolByName is not dupported :(
     //return BaseWrapper.Wrap<BuildToolWrapper_>(this.InnerObject.FindBuildToolByName(buildToolName));
     foreach (Inventory inventory in this.InnerObject.Inventories)
     {
         foreach (BuildTool buildTool in inventory.BuildTools)
         {
             if (buildTool.Name.Equals(buildToolName.ToUpper(CultureInfo.InvariantCulture)))
             {
                 return(BaseWrapper.Wrap <BuildToolWrapper_>(buildTool));
             }
         }
     }
     return(BaseWrapper.Wrap <BuildToolWrapper_>(null));
 }
Пример #7
0
 public W this[int index]
 {
     get
     {
         return(BaseWrapper.Wrap <W>(this.InnerList[index]));
     }
     set
     {
         if (value != null)
         {
             this.InnerList[index] = value.InnerObject;
         }
         else
         {
             this.InnerList[index] = default(L);
         }
     }
 }
Пример #8
0
 public ISAWrapper FindISA(string ISAGuid)
 {
     return(BaseWrapper.Wrap <ISAWrapper>(this.InnerObject.FindISA(ISAGuid)));
 }
Пример #9
0
 public ProcessorWrapper FindProcessor(string processorGuid)
 {
     return(BaseWrapper.Wrap <ProcessorWrapper>(this.InnerObject.FindProcessor(processorGuid)));
 }
Пример #10
0
 public ProcessorWrapper FindProcessorByName(string procName)
 {
     return(BaseWrapper.Wrap <ProcessorWrapper>(this.InnerObject.FindProcessorByName(procName)));
 }
Пример #11
0
 public LibraryWrapper FindLibraryByName(string libraryName)
 {
     return(BaseWrapper.Wrap <LibraryWrapper>(this.InnerObject.FindLibraryByName(libraryName)));
 }
Пример #12
0
 public LibraryWrapper FindLibraryByProject(string libraryProj)
 {
     return(BaseWrapper.Wrap <LibraryWrapper>(this.InnerObject.FindLibraryByProject(libraryProj)));
 }
Пример #13
0
 public LibraryWrapper FindLibrary(string libraryGuid)
 {
     return(BaseWrapper.Wrap <LibraryWrapper>(this.InnerObject.FindLibrary(libraryGuid)));
 }
Пример #14
0
 public LibraryWrapper FindLibrary(ComponentWrapper comp)
 {
     return(BaseWrapper.Wrap <LibraryWrapper>(this.InnerObject.FindLibrary(comp.InnerObject)));
 }
Пример #15
0
 public FeatureWrapper FindFeatureByName(string name)
 {
     return(BaseWrapper.Wrap <FeatureWrapper>(this.InnerObject.FindFeatureByName(name)));
 }
Пример #16
0
 public FeatureWrapper FindFeatureByProject(string featProject)
 {
     return(BaseWrapper.Wrap <FeatureWrapper>(this.InnerObject.FindFeatureByName(featProject)));
 }
Пример #17
0
 public FeatureWrapper FindFeature(string featureGuid)
 {
     return(BaseWrapper.Wrap <FeatureWrapper>(this.InnerObject.FindFeature(featureGuid)));//new FeatureWrapper(this.InnerObject.FindFeature(featureGuid));
 }
Пример #18
0
 public static ComponentWrapper GetComponentWrapper(ComponentTypeWrapper type)
 {
     return(BaseWrapper.Wrap <ComponentWrapper>(new MFComponent((MFComponentType)type)));
 }
Пример #19
0
 public BuildToolWrapper_ FindBuildTool(string buildToolGuid)
 {
     return(BaseWrapper.Wrap <BuildToolWrapper_>(this.InnerObject.FindBuildTool(buildToolGuid)));
 }
Пример #20
0
 public AssemblyWrapper FindAssemblyByName(string asmName)
 {
     return(BaseWrapper.Wrap <AssemblyWrapper>(this.InnerObject.FindAssemblyByName(asmName)));
 }
Пример #21
0
 public AssemblyWrapper FindAssembly(string asmGuid)
 {
     return(BaseWrapper.Wrap <AssemblyWrapper>(this.InnerObject.FindAssembly(asmGuid)));
 }