本文整理汇总了C#中System.Security.Policy.Evidence.Merge方法的典型用法代码示例。如果您正苦于以下问题:C# Evidence.Merge方法的具体用法?C# Evidence.Merge怎么用?C# Evidence.Merge使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Security.Policy.Evidence
的用法示例。
在下文中一共展示了Evidence.Merge方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EvidenceCallMethods
public static void EvidenceCallMethods()
{
Evidence e = new Evidence();
e = new Evidence(new Evidence());
e.Clear();
Evidence e2 = e.Clone();
System.Collections.IEnumerator ie = e.GetAssemblyEnumerator();
ie = e.GetHostEnumerator();
e.Merge(e2);
}
示例2: Merge_Null
public void Merge_Null ()
{
Evidence evidence = new Evidence ();
evidence.Merge (null);
// no exception!
Assert.AreEqual (0, evidence.Count, "Count");
}
示例3: Merge
public void Merge ()
{
Evidence evidence = new Evidence (new object[10], new object[10]);
Evidence evidence2 = new Evidence ();
evidence2.Merge (evidence);
Assert.AreEqual (evidence.Count, evidence2.Count, "Count");
}
示例4: BadMerge
public void BadMerge ()
{
Evidence evidence = new Evidence (null, null);
Evidence evidence2 = new Evidence ();
evidence2.Merge (evidence);
Assert.AreEqual (evidence.Count, evidence2.Count, "Count");
}
示例5: Merge_Null
public void Merge_Null ()
{
Evidence evidence = new Evidence ();
evidence.Merge (null);
// no exception!
AssertEquals ("Count", 0, evidence.Count);
}
示例6: BadMerge
public void BadMerge ()
{
Evidence evidence = new Evidence (null, null);
Evidence evidence2 = new Evidence ();
evidence2.Merge (evidence);
AssertEquals ("Count", evidence.Count, evidence2.Count);
}