· //MyFactoryMethod
using System;
using System.Collections;
//SinglePage class,which build the at last product,part element
//----top class
abstract class SinglePage
{
};
//----element1
class RegisterPage:SinglePage
{
};
//----element2
class LoginPage:SinglePage
{
};
//----elem...
· //MyPrototype
using System;
using System.Collections;
//abstract PageStylePrototype Class 'Prototype
abstract class PageStylePrototype
{ //Fieldsprotected string stylestring;//Propertiespublic string StyleString{get{return stylestring;}set{stylestring=value;}}//Methodsabstr...
· //MySingleton
using System;
//SingletonPage Class
class SingletonPage
{//Fields protected static SingletonPage checkoutpage;//Constructor is protected to ensure Singletonprotected SingletonPage(){Console.WriteLine("if you see this line,then the only one instence is creat...
· 在.NET中得到计算机硬件信息的一些功能得到显示器分辨率 Dim X As Short = System.Windows.Forms.Screen.PrimaryScreen.Bounds.WidthDim Y As Short = System.Windows.Forms.Screen.PrimaryScreen.Bounds.HeightMsgBox("您的显示器分辨率是:" & X & " X " & Y)得...
· I posted my compression helper class before and realised almost instantly that it suffered from 'legacy lag' - so it'd been changed so much over the months that it was really bad! Anyway, presented below is a modified version of that class (which I've also tried out my new fo...
· C#和VB.net的语法相差还是比较大的. 可能你会C#,可能你会VB.将它们俩放在一起对比一下你就会很快读懂,并掌握另一门语言.相信下面这张图会对你帮助很大. CommentsVB.NET 'Single line onlyRem Single line only C#// Single line/* Multipleline *//// XML comments on single line/** XML comments...