Water is pas echt lekker als het bij de brouwerij is geweest...
Misschien kun je een compleet stuk code posten.
Je geeft nu wel erg weinig informatie.
Heb je wel een referentie naar je klasse?
Je geeft nu wel erg weinig informatie.
Heb je wel een referentie naar je klasse?
mischien moet je even proberen de AssemblyQualifiedName mee te geven.
“Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.”
Zo als het ook in de documentatie staat:
C#
public static Type GetType (
string typeName
)
Parameters
typeName
The name of the AssemblyQualifiedName to get.
Nu met Land Rover Series 3 en Defender 90
Daar staat volgens mij ook bij dat als het een type uit de huidige executing assembly of uit de System namespace is dat dat niet hoeft. Vandaar dat het met System.String wel werkt.
“Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.”
Volgens mij heb je gewoon een verkeerde referentie naar je MijnClass. Probeer hem eens aan te roepen zonder het Type.GetType() stuk.
Phenom II X4 945 \\ 8GB DDR3 \\ Crosshair IV Formula \\ R9 290
code:
1
2
3
4
5
6
7
| Dim t1 As Type = Nothing
For Each a As Assembly In asms
t1 = a.GetType(classname)
If t1 IsNot Nothing Then
Exit For
End If
Next |
Op deze manier zou je wel het type terug moeten krijgen
Wat je hier mist ?
Een goede topicstart. en een blik in de MSDN
dus
Een goede topicstart. en een blik in de MSDN
If typeName includes only the name of the Type, this method searches in the calling object's assembly, then in the mscorlib.dll assembly. If typeName is fully qualified with the partial or complete assembly name, this method searches in the specified assembly.
Gets the Type with the specified name, performing a case-sensitive search.
code:
1
| Type.GetType ("MyNamespace.MyClass, MyNamespace"); |
dus
[ Voor 153% gewijzigd door whoami op 09-11-2006 13:53 ]
https://fgheysels.github.io/
Pagina: 1
Dit topic is gesloten.
![]()