摘要:先定义下要获取的实体: public class InputClass { public long Id { get; set; } public int Status { get; set; } public DateTime UdpateTime...
阅读全文
摘要:ViewModel public class ViewModel { [Required(ErrorMessage="标题不能为空")] public string Title { get; set; } public string Name { ge...
阅读全文
摘要:static double[] iArr = new double[10] { 1,2,3,4,5,6,7,8,9,10 }; static Stack stack = new Stack(); static double tempNum = 0; ...
阅读全文
摘要:给出几种产品组合,求出产品最大优惠值protected void Button1_Click(object sender, EventArgs e) { string str_input = TextBox1.Text; List<Product> list_Rule = new List<Product>(); //规则 list_Rule.Add(new Product("A", 1)); list_Rule.Add(new Product("B", 1)); list_Rule.Add(new Pr...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Text;namespace ChineseCalender{ #region ChineseCalendarException /// <summary> /// 中国日历异常处理 /// </summary> public class ChineseCalendarException : System.Exception { public ChineseCalendarException(string msg) ...
阅读全文