Example of using string instead of typeof

This commit is contained in:
Matthias Heil
2026-01-20 11:26:24 +01:00
parent b5a402ded1
commit 91cf7d4265
5 changed files with 117 additions and 20 deletions

View File

@@ -1,6 +1,12 @@
using System.Numerics;
var vector3 = new Vector3(1,2,3);
var a = new Vector3(1,2,3);
var typeName = a.GetType().AssemblyQualifiedName;
var b = new Vector3(5, 6, 7);
Vector3[] v3Array = [a, b];
List<Vector3> v3List = v3Array.ToList();
var quaternion = new Quaternion(1,2,3,4);
return;