?? customer.cs
字號:
?using System;
using System.Collections.Generic;
using System.Text;
namespace BusinessEntities
{
[CompactFormatter.Attributes.Serializable()]
public class Customer
{
public Customer()
{
}
private int id;
public int ID
{
get { return id; }
set { id = value; }
}
private string name;
public string Name
{
get { return name; }
set { name = value; }
}
private string phone;
public string Phone
{
get { return phone; }
set { phone = value; }
}
private string address;
public string Address
{
get { return address; }
set { address = value; }
}
public override bool Equals(object obj)
{
if (!obj.GetType().Equals(typeof(Customer)))
{
return false;
}
else
{
Customer answer = (Customer)obj;
return (answer.ID == ID
&& answer.Name == Name
&& answer.Phone == Phone
&& answer.Address == Address);
}
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -