Skip to content

mgoldste1/VariableInfo-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VInfoExample

This lets you forget about if things you are working on are properties or fields.

var vars = typeof(MyClass).GetAllVariables();
foreach(var v in vars)
{
  if(v.IsAttributeDefined(typeof(MyAttribute)))
    //do something, like set the variable equal to a default value in an attribute if the var value is null.
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages