DLname.cs
上传用户:nbcygd
上传日期:2008-07-25
资源大小:2566k
文件大小:1k
源码类别:

SQL Server

开发平台:

C#

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Super_market
  5. {
  6.     class DLname
  7.     {
  8.         private string str;
  9.         private static DLname c;
  10.         private DLname() { }
  11.         public static DLname getInstance()
  12.         {
  13.             if (c == null)
  14.             {
  15.                 c = new DLname();
  16.                 return c;
  17.             }
  18.             else
  19.             {
  20.                 return c;
  21.             }
  22.         }
  23.         public string Str
  24.         {
  25.             get
  26.             {
  27.                 return str;
  28.             }
  29.             set
  30.             {
  31.                 str = value;
  32.             }
  33.         }
  34.     }
  35. }