@@ -154,7 +154,7 @@ private static JArray BuildInputManifest(IExceptionContext ectx, Type inputType,
154
154
var defaults = Activator . CreateInstance ( inputType ) ;
155
155
156
156
var inputs = new List < KeyValuePair < Double , JObject > > ( ) ;
157
- foreach ( var fieldInfo in inputType . GetFields ( ) )
157
+ foreach ( var fieldInfo in inputType . GetFields ( BindingFlags . Public | BindingFlags . NonPublic | BindingFlags . Instance ) )
158
158
{
159
159
var inputAttr = fieldInfo . GetCustomAttributes ( typeof ( ArgumentAttribute ) , false ) . FirstOrDefault ( ) as ArgumentAttribute ;
160
160
if ( inputAttr == null || inputAttr . Visibility == ArgumentAttribute . VisibilityType . CmdLineOnly )
@@ -276,7 +276,7 @@ private static JArray BuildOutputManifest(IExceptionContext ectx, Type outputTyp
276
276
if ( outputType . IsGenericType && outputType . GetGenericTypeDefinition ( ) == typeof ( CommonOutputs . MacroOutput < > ) )
277
277
outputType = outputType . GetGenericArguments ( ) [ 0 ] ;
278
278
279
- foreach ( var fieldInfo in outputType . GetFields ( ) )
279
+ foreach ( var fieldInfo in outputType . GetFields ( BindingFlags . Public | BindingFlags . NonPublic | BindingFlags . Instance ) )
280
280
{
281
281
var outputAttr = fieldInfo . GetCustomAttributes ( typeof ( TlcModule . OutputAttribute ) , false )
282
282
. FirstOrDefault ( ) as TlcModule . OutputAttribute ;
@@ -476,7 +476,7 @@ private static JToken BuildComponentToken(IExceptionContext ectx, IComponentFact
476
476
// Iterate over all fields of the factory object, and compare the values with the defaults.
477
477
// If the value differs, insert it into the settings object.
478
478
bool anyValue = false ;
479
- foreach ( var fieldInfo in type . GetFields ( ) )
479
+ foreach ( var fieldInfo in type . GetFields ( BindingFlags . Public | BindingFlags . NonPublic | BindingFlags . Instance ) )
480
480
{
481
481
var attr = fieldInfo . GetCustomAttributes ( typeof ( ArgumentAttribute ) , false ) . FirstOrDefault ( )
482
482
as ArgumentAttribute ;
0 commit comments