摘要:
namespace Console运算符重载{ /// <summary> /// 这种写法类似于集成的计算方式,比较专业 /// </summary> class Class1 { public int a; public int a1; public Class1(int c, int b ) { a = c; a1 = b; } //public Class1(double cc) //{ // a1 = cc; //} //说明:implicit 关键字隐式转换指定用在将 Class 类型转换成为 int 类型,换成 explicit 就会报错 //public 阅读全文
摘要:
using System.Web.Caching;namespace PetShop.ICacheDependency { /// <summary> /// This is the interface that the DependencyFactory (Factory Pattern) returns. /// Developers could implement this interface to add different types of Cache Dependency to Pet Shop. /// </summary> public interfac 阅读全文
摘要:
public static class CacheHelper{ public static System.Collections.Generic.List Products { get { HttpContext context = HttpContext.Current; List list ... 阅读全文
摘要:
[WebMethod] public DataTable Show( string filename) { XmlSerializer ser = new XmlSerializer( typeof( DataTable ) ); DataTable table = new DataTable( "User" ); DataColumn col = new DataColumn( "string" ); table.Columns.Add( col ); DataRow r; for ( int i = 0; i < 10; i++ ) { r = 阅读全文
摘要:
create or replace procedure pro_cursor_type_Vast_tmp table3%rowtype;type c_type is ref cursor;cur c_type; v_taname varchar2(100);beginv_taname:='aa';open cur for 'select * from table3 where taname=:a order by taid desc' --a只是绑定变量的占位符以 =: 符号进行绑定 using v_taname; dbms_output.put_line( 阅读全文