1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

備忘録 C#から見てのJavaとの違い

Last updated at Posted at 2020-12-17

## 忘れないようにメモとして

#####C#から見てのJavaとの違い
●アクセス修飾子
internal はJavaではなし?

●データ型を大きく分けて
値型 と 参照型

Javaではプリミティブ型?

●定数を使う
const がc#

●文字列から数字に変換するメソッド
parseメソッド 変換後の型.parse(数字)

●数値を文字列、数字とする
Tostring 数値.Tostring(書式指定子)

●配列クリア
Array.Clearで配列をクリアできる。

例)
指定も可能 Array.Clear(array,1,2)

すべて Array.Clear(array,0,array.length)

●配列コピー
Copy Toメソッド

例)ary1.CopyTo(ary2,0)
コピー元配列名   コピー先配列名

●Arrayの簡易コピー
Clone メソッド

public  RasterImage Clone()
1
2
1

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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?