当前位置: 首页>>代码示例>>C#>>正文


C# Bam.GetType方法代码示例

本文整理汇总了C#中Bam.GetType方法的典型用法代码示例。如果您正苦于以下问题:C# Bam.GetType方法的具体用法?C# Bam.GetType怎么用?C# Bam.GetType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Bam的用法示例。


在下文中一共展示了Bam.GetType方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: EnsureProjectExists

        public VSProject EnsureProjectExists(
            Bam.Core.Module module)
        {
            var moduleType = module.GetType();
            lock (this.ProjectMap)
            {
                if (!this.ProjectMap.ContainsKey(moduleType))
                {
                    var project = new VSProject(this, module);
                    this.ProjectMap.Add(moduleType, project);

                    var groups = module.GetType().GetCustomAttributes(typeof(Bam.Core.ModuleGroupAttribute), true);
                    if (groups.Length > 0)
                    {
                        var solutionFolderName = (groups as Bam.Core.ModuleGroupAttribute[])[0].GroupName;
                        this.AddNestedEntity(solutionFolderName, project);
                    }
                }
                if (null == module.MetaData)
                {
                    module.MetaData = this.ProjectMap[moduleType];
                }
                return this.ProjectMap[moduleType];
            }
        }
开发者ID:Diwahars,项目名称:BuildAMation,代码行数:25,代码来源:VSSolution.cs

示例2: Target

 public Target(
     Bam.Core.TokenizedString nameOrOutput,
     bool isPhony,
     string variableName,
     Bam.Core.Module module,
     int count)
 {
     this.Path = nameOrOutput;
     this.IsPhony = isPhony;
     if (isPhony)
     {
         return;
     }
     if (count > 0)
     {
         return;
     }
     if (Bam.Core.Graph.Instance.IsReferencedModule(module) || !System.String.IsNullOrEmpty(variableName))
     {
         // make the target names unique across configurations
         if (System.String.IsNullOrEmpty(variableName))
         {
             this.VariableName = System.String.Format("{0}_{1}", module.GetType().Name, module.BuildEnvironment.Configuration.ToString());
         }
         else
         {
             this.VariableName = System.String.Format("{0}_{1}", variableName, module.BuildEnvironment.Configuration.ToString());
         }
     }
 }
开发者ID:knocte,项目名称:BuildAMation,代码行数:30,代码来源:Target.cs

示例3: EnsureTargetExists

        public Target EnsureTargetExists(
            Bam.Core.Module module)
        {
            var moduleType = module.GetType();
            lock (this.TargetMap)
            {
                if (!this.TargetMap.ContainsKey(moduleType))
                {
                    Project project = null;
                    // TODO: remember projects, both by a Module or by a Package
                    if (this.ProjectPerModule)
                    {
                        throw new System.NotSupportedException();
                    }
                    else
                    {
                        project = this.EnsureProjectExists(module, module.PackageDefinition.FullName);
                    }

                    var target = new Target(module, project);
                    this.TargetMap.Add(moduleType, target);

                    project.Targets.Add(moduleType, target);
                }
            }
            if (null == module.MetaData)
            {
                module.MetaData = this.TargetMap[moduleType];
            }
            return module.MetaData as Target;
        }
开发者ID:knocte,项目名称:BuildAMation,代码行数:31,代码来源:WorkspaceMeta.cs

示例4: Target

        public Target(
            Bam.Core.Module module,
            Project project)
        {
            this.IsA = "PBXNativeTarget";
            this.Name = module.GetType().Name;
            this.Module = module;
            this.Project = project;
            this.Type = EProductType.NA;

            var configList = new ConfigurationList(this);
            this.ConfigurationList = configList;
            project.ConfigurationLists.Add(configList);

            this.TargetDependencies = new Bam.Core.Array<TargetDependency>();
        }
开发者ID:knocte,项目名称:BuildAMation,代码行数:16,代码来源:Target.cs

示例5:

 Bam.Core.IBuildModeMetaData.ModuleOutputDirectory(
     Bam.Core.Module currentModule,
     Bam.Core.Module encapsulatingModule)
 {
     return Bam.Core.TokenizedString.CreateVerbatim(System.IO.Path.Combine(encapsulatingModule.GetType().Name, currentModule.BuildEnvironment.Configuration.ToString()));
 }
开发者ID:knocte,项目名称:BuildAMation,代码行数:6,代码来源:NativeMeta.cs


注:本文中的Bam.GetType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。