field

Reflections not working
16 Replies
@wdestroier
@wdestroier2y ago
@wdestroier
@wdestroier2y ago
jcotton42
jcotton422y ago
b/c it's an array and that's how arrays ToString if you want something like comma-separated use string.Join
@wdestroier
@wdestroier2y ago
I want an array with values
jcotton42
jcotton422y ago
"array with values"?
@wdestroier
@wdestroier2y ago
The returned type fields are empty
jcotton42
jcotton422y ago
wdym "empty"? that's an array of FieldInfo
@wdestroier
@wdestroier2y ago
but it's empty and the type has fields It should return _appRelativeVirtualPath and _virtualPath
jcotton42
jcotton422y ago
System.Relection.FieldInfo[] is not an empty array the [] just represent that it's an array the ToString on all arrays just prints the full type name
@wdestroier
@wdestroier2y ago
Ohhh, let me try again
jcotton42
jcotton422y ago
that's why I said if you want something more than that you'll need something like string.Join
@wdestroier
@wdestroier2y ago
@wdestroier
@wdestroier2y ago
@wdestroier
@wdestroier2y ago
@jcotton42 any idea why it's null?
jcotton42
jcotton422y ago
¯\_(ツ)_/¯