..reflection..

BlitzMax Forums/BlitzMax Programming/..reflection..

Naughty Alien(Posted 2010) [#1]
..i couldnt find any in depth tutorial, similar for tutorials done by John J. Ill appreciate a lot if you guys could point me on to some very good tutorials about reflection in bmax..thanks..


JoshK(Posted 2010) [#2]
There aren't any, AFAIK, but here's some of my code that demonstrates how to use it:
		typeid=TTypeId.ForObject(Self)
		For f=EachIn typeid.enumfields()
			If map.contains(GetGroupName()+"."+f.name())
				value=String(map.valueforkey(GetGroupName()+"."+f.name()))
				If value
					f.setstring(Self,value)
				EndIf
			EndIf
		Next



slenkar(Posted 2010) [#3]
check out mine or bruceys persistence modules also,

mine is in the code archives