public bool RequiresInitialization(IVariableDeclarationModel decl) { if (decl == null) { return(false); } VariableType variableType = decl.VariableType; Type dataType = CSharpTypeSerializer.ResolveType(decl.DataType); return((variableType == VariableType.FunctionVariable || variableType == VariableType.GraphVariable) && (dataType.IsValueType || dataType == typeof(string))); }
public static Type Resolve(this TypeHandle th, CSharpTypeSerializer serializer) { return(serializer.ResolveType(th)); }
public bool RequiresInspectorInitialization(IVariableDeclarationModel decl) { Type dataType = CSharpTypeSerializer.ResolveType(decl.DataType); return(RequiresInitialization(decl)); }