File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,13 +79,18 @@ string s
7979
8080 public static Dictionary < string , IValueWithProperties . PropInfo > ? GetPropertiesOfValue ( Type t )
8181 {
82- if ( typeof ( ReferenceValue ) . IsAssignableFrom ( t ) && t . IsGenericType )
82+ if ( ! typeof ( IValueWithProperties ) . IsAssignableFrom ( t ) ) return null ;
83+
84+ if ( t == typeof ( TextValue ) )
85+ {
86+ t = typeof ( StaticTextValue ) ;
87+ }
88+ else if ( typeof ( ReferenceValue ) . IsAssignableFrom ( t ) && t . IsGenericType )
8389 {
8490 return ReferencePropertyRegistry . GetProperties ( t . GetGenericArguments ( ) [ 0 ] ) ;
8591 }
86-
87- if ( ! typeof ( IValueWithProperties ) . IsAssignableFrom ( t ) ) return null ;
88- return ( ( IValueWithProperties ) t . CreateInstance < Value > ( ) ) . Properties ;
92+
93+ return t . CreateInstance < IValueWithProperties > ( ) . Properties ;
8994 }
9095
9196 public string FriendlyName => GetFriendlyName ( GetType ( ) ) ;
You can’t perform that action at this time.
0 commit comments