For example, "int"
and "Int32"
refer to the same type in C#.NET, but when I run var t = Type.GetType("int");
for example, no matching type is found.
The reason I'm wondering is because I'm writing tests that involve extracting the types from URL patterns like "foo/bar/{username:string}/{page:int}"
.
Aucun commentaire:
Enregistrer un commentaire