networkcredentials.cs

来自「Microsoft Mobile Development Handbook的代码」· CS 代码 · 共 40 行

CS
40
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace MobileDevelopersHandbook
{

    public class NetworkCredentials
    {
        private static NetworkCredentials thisclass = null;

        public static NetworkCredentials Instance
        {
            get
            {
                if (thisclass == null)
                    thisclass = new NetworkCredentials();

                return thisclass;
            }
        }

        private string username;

        public string Username
        {
            get { return username; }
            set { username = value; }
        }

        private string pwd;

        public string UserPassword
        {
            get { return pwd; }
            set { pwd = value; }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?