命名
casing
アセンブリ内のルートから見える項目は全て、Pascal case を使う。
namespace
全て。
class
, struct
, interface
, enum
名
public
, internal
, protected
な class
, struct
のメンバー
interface
, enum
のメンバー
namespace Microsoft.Office
{
public class PowerPoint
{
public void DoSomething()
{
return;
}
}
}
namespace microsoft.office
{
public class power_point
{
public void do_something()
{
return;
}
}
}
private
な class
, struct
のメンバー
namespace Microsoft.Office
{
public class PowerPoint
{
private void doSomething()
{
return;
}
}
}
namespace Microsoft.Office
{
public class PowerPoint
{
private void DoSomething()
{
return;
}
}
}
頭文字の集まり等の略号で大文字が続く単語の場合、2文字以下なら全て大文字、3文字以上なら先頭のみ大文字にし残りは小文字にする。
using Microsoft.Wpf;
using Microsoft.WPF;