Skip to content

Instantly share code, notes, and snippets.

@takehaya
Last active May 27, 2017 09:39
Show Gist options
  • Save takehaya/09ae0932a52e167e769a1fe36f97ffae to your computer and use it in GitHub Desktop.
Save takehaya/09ae0932a52e167e769a1fe36f97ffae to your computer and use it in GitHub Desktop.
C#オレオレコード規約
/// <summary>
/// usingはuppercamel
/// </summary>
using System;
using Hoge.Fuga;
/// <summary>
/// タブはスペース4つぶん
/// 条件ぶんはインデント形式は
/// </summary>
namespace Hoge.Main
{
class Piyo{
private int piyo;
//プロパティはuppercamel
public int Getter
{
get{
return piyo;
}
}
}
static class Hoge
{
static void Main(string[] args)
{
Console.WriteLine("hogehoge");
Test(args);
}
/// <summary>
/// uppercamel関数名
/// </summary>
static void Test(string[] args)
{
/// <summary>
/// pascalcaseで変数名をつける
/// </summary>
var inputStream = new InputStream();
foreach (var file in args)
{
inputStream.AddSourceFile(file);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment