随笔分类 - 每日代码
摘要:public string GetRouteUrl(string routeName, string physicalFile, params object[] parames) { RouteBase routeBase = RouteTable.Routes[routeName]; // GetRouteData(new HttpContextWrapper(HttpContext.Current)); if (routeBase != null) { Route route = (Route)routeBase; string url = route.Url; MatchCollecti
阅读全文
摘要:xml文件<?xml version="1.0"?><User xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Name>issac</Name> <Age>25</Age> <Address> <Adrs>123</Adrs> </Address></Use
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ public delegate T Function<out T>(); //泛型委托 out关键字:基于协变的变体 //public delegate Stro...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ public delegate T Function<out T>(); //泛型委托 out关键字:基于协变的变体 //public delegate Stro...
阅读全文