本文整理汇总了C#中System.Media.SoundPlayer.DisplayDefiningAssembly方法的典型用法代码示例。如果您正苦于以下问题:C# SoundPlayer.DisplayDefiningAssembly方法的具体用法?C# SoundPlayer.DisplayDefiningAssembly怎么用?C# SoundPlayer.DisplayDefiningAssembly使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Media.SoundPlayer
的用法示例。
在下文中一共展示了SoundPlayer.DisplayDefiningAssembly方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunTests
public static void RunTests() {
const int i = 123456;
i.DisplayDefiningAssembly();
var rI = i.ReverseDigits();
Console.WriteLine("i = {0} was changed to - {1}", i, rI);
var d = new DataSet();
d.DisplayDefiningAssembly();
var sp = new SoundPlayer();
sp.DisplayDefiningAssembly();
var list = new List<int> {1,2,3,4};
list.PrintCollection();
}
示例2: TestMyExtensions
public static void TestMyExtensions()
{
// the int has assumed a new identity
int myInt = 12345678;
myInt.DisplayDefiningAssembly();
// so has the DataSet
System.Data.DataSet d = new System.Data.DataSet();
d.DisplayDefiningAssembly();
// and the SoundPlayer
System.Media.SoundPlayer sp = new System.Media.SoundPlayer();
sp.DisplayDefiningAssembly();
// use new integer functionality
Console.WriteLine("Value of myInt: {0}", myInt);
Console.WriteLine("Reversed digits of myInt: {0}", myInt.ReverseDigits());
}
示例3: Main
static void Main(string[] args)
{
Console.WriteLine("***** Fun with Extension Methods *****\n");
int myInt = 12345678;
myInt.DisplayDefiningAssembly();
DataSet d = new DataSet();
d.DisplayDefiningAssembly();
SoundPlayer sp = new SoundPlayer();
sp.DisplayDefiningAssembly();
Console.WriteLine("Value of myInt: {0}", myInt);
Console.WriteLine("Reversed digits of myInt: {0}", myInt.ReverseDigits());
myInt.Foo();
myInt.Foo("Ints that Foo? Who would have thoght it!\n");
UseCar();
Console.ReadLine();
}