本文整理汇总了C#中Components.GetPackageAwareLibrary方法的典型用法代码示例。如果您正苦于以下问题:C# Components.GetPackageAwareLibrary方法的具体用法?C# Components.GetPackageAwareLibrary怎么用?C# Components.GetPackageAwareLibrary使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Components
的用法示例。
在下文中一共展示了Components.GetPackageAwareLibrary方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ExperimentFactoryReader
/// <summary>
/// Initializes a new instance of the <see cref="ExperimentFactoryReader"/> class.
/// </summary>
/// <param name="library">The library.</param>
/// <param name="experimentLocationRoot">The experiment location root - it can be null in case the experiment belongs to composite component.</param>
public ExperimentFactoryReader(Components.IComponentsLibrary library, IEnumerable<IPackageReference> references, string experimentLocationRoot)
{
if (library == null)
throw new ArgumentNullException("library");
m_library = library.GetPackageAwareLibrary(references);
m_experimentLocationRoot = experimentLocationRoot;
//Create our own namespaces for the output
var ns = new System.Xml.Serialization.XmlSerializerNamespaces();
//Add an empty namespace and empty value
ns.Add("", "");
m_nodeSerializer = TraceLab.Core.Serialization.XmlSerializerFactory.GetSerializer(typeof(SerializedVertexData), null);
m_nodeSerializerWithSize = TraceLab.Core.Serialization.XmlSerializerFactory.GetSerializer(typeof(SerializedVertexDataWithSize), null);
}