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


C# SoundPlayer.DisplayDefiningAssembly方法代码示例

本文整理汇总了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();
        }
开发者ID:JohnPaine,项目名称:learning,代码行数:15,代码来源:Extensions.cs

示例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());
    }
开发者ID:walrus7521,项目名称:code,代码行数:18,代码来源:Extension.cs

示例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();
        }
开发者ID:volkoff-pro,项目名称:Troelsen.CSharp,代码行数:23,代码来源:Program.cs


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