LoginSignup
2
2

More than 5 years have passed since last update.

CSharp > CLS準拠 >uint:CLSに準拠していない

Last updated at Posted at 2017-07-13
動作環境
Windows 8.1 Pro (64bit)
Microsoft Visual Studio 2017 Community

C# CODING GUIDELINES
http://qiita.com/Ted-HM/items/67eddbe36b88bf2d441d
を読んでいて、ふと目に入った以下の部分。

uintすなわちSystem.UInt32はCLSに準拠していません。

CLSとは何か。

CLS 準拠コードの記述 @ MSDN

CLS準拠の必要性などについては以下に紹介されていました。
http://csharper.blog57.fc2.com/blog-entry-29.html

全ての.NET言語がサポートしなければならない仕様を共通言語仕様(CLS)と呼ぶ。
CLSは、外部に公開する部分にだけ適用される。つまり、メソッド内の処理コードなどには関係ない。

別の情報として。
https://stackoverflow.com/questions/1828575/why-should-i-write-cls-compliant-code

The answer is to allow maximum compatibility across .NET languages. CLS is the lingua franca ...

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2