static VectorHelpers() { /// Type code of the type for efficient type equality test RuntimeTypeHandle typeHandle1 = typeof(double).TypeHandle; IntPtr num1 = StartupCodeDeedle.Deedle.VectorHelpers.doubleCode = typeHandle1.Value; RuntimeTypeHandle typeHandle2 = typeof(int).TypeHandle; IntPtr num2 = StartupCodeDeedle.Deedle.VectorHelpers.intCode = typeHandle2.Value; RuntimeTypeHandle typeHandle3 = typeof(string).TypeHandle; IntPtr num3 = StartupCodeDeedle.Deedle.VectorHelpers.stringCode = typeHandle3.Value; //TODO: Lazy <MethodInfo> lazy1 = StartupCodeDeedle.Deedle.VectorHelpers.convertTypeMethod = Lazy <_> .Create((FSharpFunc <Unit, M0>) new Deedle.VectorHelpers.convertTypeMethod()); intTypes = new[] { typeof(byte), typeof(sbyte), typeof(short), typeof(ushort), typeof(int) }; int64Types = intTypes.Union(new[] { typeof(uint), typeof(long) }).ToArray(); floatTypes = int64Types.Union(new[] { typeof(Decimal), typeof(ulong), typeof(float), typeof(double) }).ToArray(); stringTypes = new[] { typeof(char), typeof(string) }; Type bottom = Deedle.VectorHelpers.Inference.Bottom; Type top = Deedle.VectorHelpers.Inference.Top; Lazy <ModuleBuilder> lazy2 = StartupCodeDeedle.Deedle.VectorHelpers.typedRowModule = (Lazy <ModuleBuilder>)LazyExtensions.Create <ModuleBuilder>((FSharpFunc <Unit, M0>) new Deedle.VectorHelpers.typedRowModule()); ConstructorInfo constructorInfo = StartupCodeDeedle.Deedle.VectorHelpers.objCtor = typeof(object).GetConstructor(new Type[0]); Type addrTyp = Deedle.VectorHelpers.Reflection.addrTyp; Type type1 = typeof(OptionalValue <object>); Type type2 = StartupCodeDeedle.Deedle.VectorHelpers.optTyp = !type1.GetTypeInfo().IsGenericType ? type1 : type1.GetGenericTypeDefinition(); FSharpRef <int> fsharpRef = StartupCodeDeedle.Deedle.VectorHelpers.typeCounter = (FSharpRef <int>)Operators.Ref <int>((M0)0); Dictionary <Tuple <Type, FSharpList <string> >, Tuple <object, FSharpList <Tuple <string, Type> > > > dictionary = StartupCodeDeedle.Deedle.VectorHelpers.createdTypedRowsCache = new Dictionary <Tuple <Type, FSharpList <string> >, Tuple <object, FSharpList <Tuple <string, Type> > > >(); }
public ExecutionEnvironment(FSharpRef<FSharpMap<string, FSharpRef<Expression>>> e) { this.env = new EnvironmentWrapper(e); }
//Default constructor. Sets the environment contained by this EnvironmentWrapper //to the one provided by FScheme by default. public EnvironmentWrapper() { this.env = FScheme.environment; }
public EnvironmentWrapper(FSharpRef<FSharpMap<string, FSharpRef<Expression>>> e) { this.env = e; }
//Sets the environment contained by this EnvironmentWrapper //to the one provided by FScheme by default. public EnvironmentWrapper() { this.cEnv = FScheme.compileEnvironment; this.rEnv = FScheme.environment; }