69 references to Compile
System.Activities (15)
Microsoft\VisualBasic\Activities\VisualBasicValue.cs (1)
69this.compiledExpression = this.expressionTree.Compile();
System\Activities\Expressions\BinaryExpressionHelper.cs (1)
45function = lambdaExpression.Compile();
System\Activities\Expressions\ExpressionServices.cs (5)
410Func<Variable> func = funcExpression.Compile(); 552Func<Variable> func = funcExpression.Compile(); 607Func<DelegateArgument> func = funcExpression.Compile(); 662Func<DelegateArgument> func = funcExpression.Compile(); 694Func<RuntimeArgument> func = expr.Compile();
System\Activities\Expressions\LambdaValue.cs (1)
64this.compiledLambdaValue = this.rewrittenTree.Compile();
System\Activities\Expressions\MemberExpressionHelper.cs (1)
49operation = lambdaExpression.Compile();
System\Activities\Expressions\MethodCallExpressionHelper.cs (2)
203return lambdaExpression.Compile(); 224return lambdaExpression.Compile();
System\Activities\Expressions\UnaryExpressionHelper.cs (1)
37operation = lambdaExpression.Compile();
System\Activities\ExpressionUtilities.cs (3)
263return objectLambda.Compile(); 1394Func<Argument> argumentFunc = argumentLambda.Compile(); 1631Func<LocationReference> locationReferenceFunc = locationReferenceLambda.Compile();
System.Core (6)
Microsoft\Scripting\Actions\CallSite.cs (2)
348).Compile(); 727return lambda.Compile();
Microsoft\Scripting\Actions\CallSiteBinder.cs (1)
151T newRule = e.Compile();
Microsoft\Scripting\Ast\LambdaExpression.cs (1)
215return Compile();
System\Linq\SequenceQuery.cs (2)
130this.enumerable = f.Compile()(); 179this.func = f.Compile();
System.Data.Entity (31)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (2)
372var userMaterializationFunc = Expression.Lambda<Func<DbDataReader, object[], object>>(nex, _reader, _values).Compile(); 448var userMaterializationFunc = Expression.Lambda<Func<DbDataReader, object[], object>>(newMemberInit, _reader, _values).Compile();
System\Data\Common\Internal\Materialization\Translator.cs (2)
257return lambda.Compile(); 319userExpression.Compile();
System\Data\Objects\ELinq\Funcletizer.cs (1)
445.Compile();
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
316Object_Parameter).Compile();
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (4)
88Func<object, object> getEntityWrapperDelegate = lambda.Compile(); 109Object_Parameter, Value_Parameter).Compile(); 118Object_Parameter, PropertyName_Parameter).Compile(); 127Object_Parameter, PropertyName_Parameter, PropertyValue_Parameter).Compile();
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (1)
303return Expression.Lambda<Func<object>>(Expression.New(typeToInstantiate)).Compile();
System\Data\SqlClient\SqlSpatialDataReader.cs (1)
103Func<BinaryReader, object> result = ex.Compile();
System\Data\SqlClient\SqlTypesAssembly.cs (19)
183this.sqlBytesFromByteArray = Expressions.Lambda<byte[], object>("binaryValue", bytesVal => BuildConvertToSqlBytes(bytesVal, this.SqlBytesType)).Compile(); 184this.sqlStringFromString = Expressions.Lambda<string, object>("stringValue", stringVal => BuildConvertToSqlString(stringVal, this.SqlStringType)).Compile(); 185this.sqlCharsFromString = Expressions.Lambda<string, object>("stringValue", stringVal => BuildConvertToSqlChars(stringVal, this.SqlCharsType)).Compile(); 186this.sqlXmlFromXmlReader = Expressions.Lambda<System.Xml.XmlReader, object>("readerVaue", readerVal => BuildConvertToSqlXml(readerVal, this.SqlXmlType)).Compile(); 191this.sqlBooleanToBoolean = Expressions.Lambda<object, bool>("sqlBooleanValue", sqlBoolVal => sqlBoolVal.ConvertTo(this.SqlBooleanType).ConvertTo<bool>()).Compile(); 197.Else(sqlBoolVal.ConvertTo(this.SqlBooleanType).ConvertTo<bool>().ConvertTo<bool?>())).Compile(); 200this.sqlBytesToByteArray = Expressions.Lambda<object, byte[]>("sqlBytesValue", sqlBytesVal => sqlBytesVal.ConvertTo(this.SqlBytesType).Property<byte[]>("Value")).Compile(); 203this.sqlCharsToString = Expressions.Lambda<object, string>("sqlCharsValue", sqlCharsVal => sqlCharsVal.ConvertTo(this.SqlCharsType).Call("ToSqlString").Property<string>("Value")).Compile(); 206this.sqlStringToString = Expressions.Lambda<object, string>("sqlStringValue", sqlStringVal => sqlStringVal.ConvertTo(this.SqlStringType).Property<string>("Value")).Compile(); 209this.sqlDoubleToDouble = Expressions.Lambda<object, double>("sqlDoubleValue", sqlDoubleVal => sqlDoubleVal.ConvertTo(this.SqlDoubleType).ConvertTo<double>()).Compile(); 215.Else(sqlDoubleVal.ConvertTo(this.SqlDoubleType).ConvertTo<double>().ConvertTo<double?>())).Compile(); 218this.sqlInt32ToInt = Expressions.Lambda<object, int>("sqlInt32Value", sqlInt32Val => sqlInt32Val.ConvertTo(this.SqlInt32Type).ConvertTo<int>()).Compile(); 224.Else(sqlInt32Val.ConvertTo(this.SqlInt32Type).ConvertTo<int>().ConvertTo<int?>())).Compile(); 227this.sqlXmlToString = Expressions.Lambda<object, string>("sqlXmlValue", sqlXmlVal => sqlXmlVal.ConvertTo(this.SqlXmlType).Property<string>("Value")).Compile(); 229this.isSqlGeographyNull = Expressions.Lambda<object, bool>("sqlGeographyValue", sqlGeographyValue => sqlGeographyValue.ConvertTo(this.SqlGeographyType).Property<bool>("IsNull")).Compile(); 230this.isSqlGeometryNull = Expressions.Lambda<object, bool>("sqlGeometryValue", sqlGeometryValue => sqlGeometryValue.ConvertTo(this.SqlGeometryType).Property<bool>("IsNull")).Compile(); 232this.geographyAsTextZMAsSqlChars = Expressions.Lambda<object, object>("sqlGeographyValue", sqlGeographyValue => sqlGeographyValue.ConvertTo(this.SqlGeographyType).Call("AsTextZM")).Compile(); 233this.geometryAsTextZMAsSqlChars = Expressions.Lambda<object, object>("sqlGeometryValue", sqlGeometryValue => sqlGeometryValue.ConvertTo(this.SqlGeometryType).Call("AsTextZM")).Compile(); 529var result = ex.Compile();
System.Data.Linq (16)
CompiledQuery.cs (16)
40return query.Compile(); 53return query.Compile(); 66return query.Compile(); 79return query.Compile(); 92return query.Compile(); 105return query.Compile(); 118return query.Compile(); 131return query.Compile(); 144return query.Compile(); 157return query.Compile(); 170return query.Compile(); 183return query.Compile(); 196return query.Compile(); 209return query.Compile(); 222return query.Compile(); 235return query.Compile();
System.Web (1)
UI\WebControls\ModelDataSourceView.cs (1)
34private static readonly MethodInvokerDispatcher _methodInvokerDispatcher = ((Expression<MethodInvokerDispatcher>)((methodInfo, instance, args) => methodInfo.Invoke(instance, args))).Compile();