本文整理汇总了C#中TestClass.Print方法的典型用法代码示例。如果您正苦于以下问题:C# TestClass.Print方法的具体用法?C# TestClass.Print怎么用?C# TestClass.Print使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestClass
的用法示例。
在下文中一共展示了TestClass.Print方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: teste1
static void teste1(Object arg)
{
TestClass obj1 = new TestClass();
obj1.Print();
MonoEmbed.PrintVBoxes(obj1);
TestClass obj2 = new TestClass(88, 99);
obj2.Print();
MonoEmbed.PrintVBoxes(obj2);
obj1.setA(66);
obj1.Print();
MonoEmbed.PrintVBoxes(obj1);
}
示例2: Main
static void Main()
{
TestClass obj1 = new TestClass();
obj1.a = 66;
obj1.b = 88;
obj1.Print();
obj1.makeCalculations();
MonoEmbed.PrintVBoxes(obj1);
}
示例3: Main
static void Main()
{
TestClass obj = new TestClass(new TestClass.A(7), new TestClass.B(8));
m(obj);
Console.WriteLine("obj.a.parent = {0}", obj.a.parent);
Console.WriteLine("obj.a.n = {0}", obj.a.n);
//MonoEmbed.PrintVBoxes(obj.a);
obj.Print();
}
示例4: Main
public static void Main(string[] args)
{
var resources = new ResourceManager("ReadFromResources.Program", Assembly.Load(new AssemblyName("ReadFromResources")));
Console.WriteLine(resources.GetString("HelloWorld"));
Console.WriteLine(resources.GetString("HelloWorld", new CultureInfo("fr-FR")));
Console.WriteLine(resources.GetString("HelloWorld", new CultureInfo("de")));
resources = new ResourceManager("ResourcesLibrary.Test", Assembly.Load(new AssemblyName("ResourcesLibrary")));
Console.WriteLine(resources.GetString("Welcome", new CultureInfo("fr-FR")));
var edmAssembly = Assembly.Load(new AssemblyName("Microsoft.Data.Edm"));
var edmResource = new ResourceManager("Microsoft.Data.Edm", edmAssembly);
Console.WriteLine(edmResource.GetString("Bad_AmbiguousElementBinding"));
Console.WriteLine(edmResource.GetString("Bad_AmbiguousElementBinding", new CultureInfo("fr")));
var testClass = new TestClass();
Console.WriteLine(testClass.Print());
}
示例5: teste2
static void teste2()
{
Console.WriteLine("Hello from thread = {0}", Thread.CurrentThread.GetHashCode());
TestClass obj1 = new TestClass();
obj1.Print();
}