This is my awesome c code:
#include <stdio.h>
int main(void) {
return 0;
}
using System; | |
using System.Collections.Generic; | |
using Manos.IO; | |
using Meebey.SmartIrc4net; | |
using SmartIrcBot4net; | |
namespace Test | |
{ | |
public class AdminPlugin : IrcBotPlugin |
#include <ncurses.h> | |
int main(int argc, char **argv) | |
{ | |
int i; | |
char buffer[512]; | |
initscr(); | |
nonl(); | |
cbreak(); |
using System; | |
using System.Reflection; | |
using System.Linq; | |
namespace testing | |
{ | |
class DynamicDelegate | |
{ | |
public MethodInfo Method { get; protected set; } | |
public string Name { get; protected set; } |
This is my awesome c code:
#include <stdio.h>
int main(void) {
return 0;
}
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace System | |
{ | |
public class BitArraySegment : IEnumerable<bool> | |
{ | |
public BitArrayWrapper Array { get; private set; } | |
public int Offset { get; private set; } |
using System; | |
namespace System | |
{ | |
public static class TimesExtensions | |
{ | |
public static void Times(this byte times, Action cb) | |
{ | |
times.Times((i) => { cb(); }); | |
} |
var blob = repo.ObjectDatabase.CreateBlob("index.txt"); | |
var treeDefinition = new TreeDefinition(); | |
treeDefinition.Add("index.txt", blob, Mode.NonExecutableFile); | |
var tree = repo.ObjectDatabase.CreateTree(treeDefinition); | |
var commit = repo.ObjectDatabase.CreateCommit("Hello World", | |
new Signature("name", "mail", DateTimeOffset.Now), | |
new Signature("name", "mail", DateTimeOffset.Now), | |
tree, new Commit[0]); |
This document describes the C# language features currently featured in the March CTP. There's also discussion of a few of the VB features in the preview, where those are intended to be eventually implemented in C# as well.
Note that we have more language features planned that are not yet implemented. So look out for more to come in future CTPs and eventually a shipping version of C#.
Read me please