摘要: Writing Unsafe code using C# 编写含有C代码的C#程序using System;class MyClass { public unsafe static void Main() { int iData = 10; int* pData = &iData; Console.WriteLine("Data is " + iData); Console.WriteLine("Address is " + (int)pData ); }}using System;class MyClass { public static vo 阅读全文
posted @ 2012-07-14 20:15 csharpyy 阅读(187) 评论(0) 推荐(0)
摘要: public static object Eval(string sCSCode) { CSharpCodeProvider c = new CSharpCodeProvider(); ICodeCompiler icc = c.CreateCompiler(); CompilerParameters cp = new CompilerParameters(); cp.ReferencedAssemblies.Add("system.dll"); cp.ReferencedAssemblies.Add("system.xml.dll"); cp.Refe 阅读全文
posted @ 2012-07-14 17:54 csharpyy 阅读(797) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using Sorting.CSharpStringSort;namespace SortTests.Sorting{ public class sfList : List<string> { public sfList() : base() { } public sfList(int size) : base(size) { } public sfList(IEnumerable<String> aArray) : base(aArray) { } public new v.. 阅读全文
posted @ 2012-07-14 14:35 csharpyy 阅读(333) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示