public bool RequiresInitialization(IVariableDeclarationModel decl)
        {
            if (decl == null)
            {
                return(false);
            }

            VariableType variableType = decl.VariableType;
            Type         dataType     = m_TypeHandleSerializer.ResolveType(decl.DataType);

            return((variableType == VariableType.FunctionVariable || variableType == VariableType.GraphVariable) &&
                   (dataType.IsValueType || dataType == typeof(string) || dataType.IsVsArrayType()));
        }
Exemplo n.º 2
0
 public ITypeMetadata Create(TypeHandle th)
 {
     //TODO resolve if it's a THIS typeHandle and replace with the proper types.
     return(m_FactoryMethod(th, m_TypeHandleSerializer.ResolveType(th)));
 }