businesssearchresult.cs

来自「在windows mobile 5上的地图查看器」· CS 代码 · 共 65 行

CS
65
字号
// Copyright (c) Jason Fuller. 
//
// Use of this source code is subject to the terms of the license found in the
// file License.txt.  If you did not accept the terms of that license, you are
// not authorized to use this source code.

#region Using directives

using System;

#endregion

namespace PocketEarth
{
    /// <summary>
    /// A single search result, when searching for a business 
    /// or a business category.
    /// </summary>
    public class BusinessSearchResult
    {
        private string name, address, phone;
        private double latitude, longitude;

        public string Name
        {
            get { return name; }
        }

        public string Address
        {
            get { return address; }
        }

        public string Phone
        {
            get { return phone; }
        }


        public double Latitude
        {
            get { return latitude; }
        }

        public double Longitude
        {
            get { return longitude; }
        }

        public BusinessSearchResult(
            string name, 
            string address,
            string phone,
            double latitude, 
            double longitude)
        {
            this.name = name;
            this.address = address;
            this.phone = phone;
            this.latitude = latitude;
            this.longitude = longitude;
        }
    }
}

⌨️ 快捷键说明

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