expression Questions

4

Solved

I am getting: "error: expected expression before '{' token" for the line I've commented before. If the struct is already defined why would it need a "{" before token. Thanks for any help you can pr...
Incest asked 7/11, 2012 at 18:21

3

Question: Remove extra parentheses from the string. e.g. ((a+b))*c => (a+b)*c (a+b)+c => (a+b)+c ((a+b)/(c+d)) => ((a+b)/(c+d)) (a+(((b-c)))*d) => (a+(b-c)*d) and so on. I h...
Janitor asked 2/11, 2012 at 23:36

2

Is there a possibility to use a parameter list in Criteria API .in expression? I have something like this: List<Long> list = new ArrayList<Long>(); list.add((long)1); list.add((lo...
Dependence asked 24/5, 2012 at 7:25

2

Solved

Introduction My application instantiates an object using method chaining so it is generated and configured like so: var car = new Car("Ferrari").Doors(2).OtherProperties(x = x.Color("Red")); ...
Uraeus asked 27/10, 2012 at 21:52

1

Solved

I've built a method that returns me an instance of attribute if it is found on the property: public static U GetPropertyAttribute<T, TProperty, U>(this T instance, Expression<Func<T, T...
Sachiko asked 25/10, 2012 at 16:39

3

Solved

I am quite new to programming. This is in relation to python. So the idea is to take an expression such as 3/5 or, at most, 3/5*2(at most two operators, note that the operators can be any of +,-,/,...
Whom asked 24/10, 2012 at 18:57

2

Solved

Description I have a expression to point on a property of my type. But it does not work for every property type. "Does not mean" means it result in different expression types. I thought it will ev...
Bevins asked 19/10, 2012 at 13:31

2

Solved

Is it possible to include statements with expressions with Groovy's conditional operator? This is what I'm doing now, and I want break this down in a single conditional statement with the println s...
Landgrabber asked 18/10, 2012 at 18:40

2

Solved

I have built a repository using Lambda expressions to filter my entity collections. As a parameter to the method I'm sending Expression<Func<Case, bool>> exp. But inside the method I wo...
Pylorus asked 24/11, 2011 at 12:47

2

Solved

I created a filterable BindingList from this source. It works great: list.Filter("Customer == 'Name'"); does what it should. The internals work like a parser, that converts the expression == or ...
Anderlecht asked 5/6, 2009 at 16:10

2

Is there a reason why the following piece of code doesn't work in IE? While with FF and other sane browsers it splits the string by the given expression, in IE it simply doesn't work. var str = "a...
Transect asked 21/9, 2009 at 9:1

1

Solved

Is there a simple way of finding out if an Expression contains a ParameterExpression that isn't further wrapped in for example a MemberExpression. Example: x => x.Method() ? x : null <= 1 o...
Maxinemaxiskirt asked 5/10, 2012 at 13:38

2

Solved

Is there any way to create an instance of an object with object initializer with an Expression Tree? I mean create an Expression Tree to build this lambda: // my class public class MyObject { pub...
Brainstorming asked 3/10, 2012 at 4:6

5

Solved

I am trying to write a static function to Or two expressions, but recieve the following error: The parameter 'item' is not in scope. Description: An unhandled exception occurred during the e...
Grenville asked 4/1, 2009 at 21:44

1

Solved

How can I define a general function without the exact expression in Mathematica? For example, I don't need this: a[x_, y_]:= 2x + 3y, I need to work with a general parameter a(x,y) instead: a[x...
Fore asked 21/9, 2012 at 11:59

2

Solved

Given that I have a expression of the form '(map? %) How do I convert it into something like '#(map? %) So that I can ultimately expand it into something like '(apply #(map? %) value) I t...
Kolodgie asked 16/9, 2012 at 1:57

2

Solved

Possible Duplicate: Most efficient way to test equality of lambda expressions How to check if two Expression<Func<T, bool>> are the same How to test that two expressions ...
Dislodge asked 1/9, 2012 at 16:11

3

Solved

I'm trying to create a LLDB alias that evaluates an expression using the argument (%1) to the alias. I've tried many, many different syntax combinations, but it seems like anything that uses %1 in ...
Caslon asked 17/4, 2012 at 20:52

1

Solved

I'm pushing the limits of my knowledge in c# and linq here, so please bear with me if I'm completely off with my example or understanding of linq, c#, generic types, lambda expressions,design patte...
Brozak asked 23/8, 2012 at 19:26

2

I can't use boost::spirit in my environment. But I would like to use STL and boost as much as possible to build my own expression evaluator. Is there such an alternative to boost::spirit?
Jongjongleur asked 29/12, 2011 at 21:29

3

Solved

How can i remove all Russian letters from a string in PHP ? Or the opposite, i would like to keep only. English letters, white space, numbers and all the signs like !@#$%^&*(){}":?><>~'" Ho...
Twinned asked 19/8, 2012 at 12:7

4

Solved

I am seeking help on how to achieve this with LINQ in a type safe way. I need to perform search on "Performance" table with many columns. Based on the criteria specified for search I need to pick ...
Draughts asked 15/8, 2012 at 2:8

1

Solved

I am using Expression Language (EL) in JSP. <c:set var="noOfPages" value="${numItems/itemsPerPage}" /> <fmt:formatNumber var="noOfPagesRounded" value="${noOfPages}" maxFractionDigits="0"...
Menken asked 6/8, 2012 at 13:6

2

Solved

Hi I am trying to achive something like this; Method<TObjectType>(m=>m.GetData); //m is the instance of TObjectType if I can succeed on that, then I can visit this expression and get th...
Roncesvalles asked 31/7, 2012 at 7:18

2

Solved

This question follows on from MYSQL join results set wiped results during IN () in where clause? So, short version of the question. How do you turn the string returned by GROUP_CONCAT into a comma...
Melissiamelita asked 10/1, 2011 at 18:45

© 2022 - 2024 — McMap. All rights reserved.