回答編集履歴

4

修正

2019/02/08 12:31

投稿

Zuishin
Zuishin

スコア28662

test CHANGED
@@ -1,8 +1,10 @@
1
- [int] は RuntimeType 型です。これは型を表すクラスの型ですが、Public ではなくシステム内部で使われる型なので、外部で Type 型として扱ってください。
1
+ [int] は RuntimeType 型です。これは型を表すクラスの型ですが、Public ではなくシステム内部で Internal として宣言さている型なので、PowerShell など外部から使うことがきません。かわりにその基本型である Type 型を使ってください。
2
2
 
3
3
 
4
4
 
5
5
  参考 : [What's the difference between System.Type and System.RuntimeType in C#?](https://stackoverflow.com/questions/5737840/whats-the-difference-between-system-type-and-system-runtimetype-in-c)
6
+
7
+ ソース : [System.Runtime.Type](https://referencesource.microsoft.com/#mscorlib/system/rttype.cs,0d48ca51b2d2f8ed)
6
8
 
7
9
 
8
10
 

3

修正

2019/02/08 12:31

投稿

Zuishin
Zuishin

スコア28662

test CHANGED
@@ -30,4 +30,6 @@
30
30
 
31
31
  [Type]$typeOfTest = [test]
32
32
 
33
+ [Type]$typeOfTest2 = $test.GetType()
34
+
33
35
  ```

2

修正

2019/02/08 12:17

投稿

Zuishin
Zuishin

スコア28662

test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
 
21
- test クラスは test 型です。test 型の型は Type 型(RuntimeType 型)です。
21
+ test クラスのインスタンスは test 型です。test 型の型は Type 型(RuntimeType 型)です。
22
22
 
23
23
 
24
24
 

1

修正

2019/02/08 12:16

投稿

Zuishin
Zuishin

スコア28662

test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
 
21
- test クラスは test 型です。の型は Type 型(RuntimeType 型)です。
21
+ test クラスは test 型です。test 型の型は Type 型(RuntimeType 型)です。
22
22
 
23
23
 
24
24