vb.net - Is it possible to make vb write code itself? -
as i'm writing giant class, thinking basic enough scriptable, let me give example
public class bigclass private _att1 single public property att1 single return _att1 end set(value single) dim v = value - _att1 _att1 = value dependent1 += v * 0.25 dependent2 += v * 3 end set public property dependent1 single public property dependent2 single end class and on , over, there on 100 properties write , of them receive simple trickledown effect other properties.
this go faster , more maintainable if write in pseudo code this:
att1; dependent1; att1, 0.25; dependent2; att1, 3; in imaginary language, each line defines property. after first semicolon each following statement ending in semicolon defines dependency on other attribute , multiplier.
my question is, possible have custom script language in file in project , have visual studio(2013) parse .vb file/code in realtime? sorta visual designer writing .vb file?
one way can see working make little "compiler" executable visual studio runs every time stop editing source file.
Comments
Post a Comment