Last active
May 27, 2017 09:39
-
-
Save takehaya/09ae0932a52e167e769a1fe36f97ffae to your computer and use it in GitHub Desktop.
C#オレオレコード規約
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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