예제 #1
0
        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)));
        }
예제 #2
0
 public static Type Resolve(this TypeHandle th, CSharpTypeSerializer serializer)
 {
     return(serializer.ResolveType(th));
 }
예제 #3
0
        public bool RequiresInspectorInitialization(IVariableDeclarationModel decl)
        {
            Type dataType = CSharpTypeSerializer.ResolveType(decl.DataType);

            return(RequiresInitialization(decl));
        }