本文整理汇总了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];
}
}
示例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());
}
}
}
示例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;
}
示例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>();
}
示例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()));
}