expression Questions
4
I have a nullable datetime field and I have to convert the string date field to a nullable datetime type (using Expression)....I did this using the below.
Expression.Constant(Convert.ChangeType(v...
Mciver asked 17/5, 2013 at 2:54
3
Solved
I have a procedure that contains CASE expression statement like so:
BEGIN
....
WHILE counter < total DO
....
CASE ranking
WHEN 1 OR 51 OR 100 OR 167 THEN SET
project_name = 'alpha';
WHEN 2...
Hierocracy asked 8/7, 2014 at 11:26
2
Solved
The docs state that "The simplest way to run a block where it cannot be a stand-alone statement is by writing do before it" and provide the following example:
# This dies half of the time...
Abigael asked 11/8, 2021 at 15:25
3
I'm working on a php application where the user has to insert an Excel's cell id (for example A1 or AB32), a value which is stored in the database for later use and I'm trying to validate the cell ...
Ormolu asked 27/12, 2016 at 14:55
4
Solved
I'm relatively new to bash programming and i am currently creating a simple calculator.
It needs to use floating point numbers and check they are so.
I have a checkNumbers function:
function che...
Cockcrow asked 9/12, 2012 at 19:11
3
Solved
According to this answer, a function call is a statement, but in the course I'm following in Coursera they say a function call is an expression.
So this is my guess: a function call does something...
Let asked 21/5, 2013 at 0:25
6
Solved
We know that we can use an if let statement as a shorthand to check for an optional nil then unwrap.
However, I want to combine that with another expression using the logical AND operator &&am...
Corticosteroid asked 8/8, 2014 at 11:44
3
Solved
I am trying to build an "And" predicate method using C# with Entity Framework Core 3 in a .NET Core application.
The function adds two expressions to each other and passes it to an IQueryable code...
Halliehallman asked 30/10, 2019 at 17:22
4
I'm using JPQL and want to receive some normal parameters and a collection in a Constructor Expression to directly create the DTO-objects. But if the Collection is empty, I always get a error becau...
Nonjoinder asked 13/5, 2011 at 22:32
1
Solved
I'm working on a streaming rules engine, and some of my customers have a few hundred rules they'd like to evaluate on every event that arrives at the system. The rules are pure (i.e. non-side-effec...
Damiandamiani asked 21/6, 2021 at 17:29
3
Using the De Bruijn notation, it is possible to define lambda terms as:
data BTerm = BVar Int | BLam BTerm | BApp BTerm BTerm
Or using the usual notation,
data Term = Var String | Lam String Term |...
Hangover asked 29/5, 2021 at 6:8
7
Solved
I would like to validate a hostname using only regualr expression.
Host Names (or 'labels' in DNS jargon) were traditionally defined by RFC 952 and RFC 1123 and may be composed of the following v...
Carryingon asked 14/1, 2010 at 9:31
9
Solved
Suppose I have a string such as this in a text file:
(((var1 AND var2 AND var3) OR var4) AND ((var5 OR var6) AND var7))
After parsing this into the C program and the vars are handled and set corre...
Croydon asked 23/9, 2009 at 13:11
3
Solved
Are JSP expressions evaluated inside HTML comments of a JSP page?
i.e What would server output in this case?
<!--
Jeremy <%="Flowers"%>
-->
Will the expression be resolved or will ...
Pippin asked 20/2, 2011 at 21:42
4
Solved
You can return from a function before reaching the last statement can be done using return:
fn example() -> i32 {
if true {
return 1;
}
0 // this line is never reached
}
Is it possible to ...
Phore asked 14/3, 2021 at 20:46
4
Is it possible to write extension methods for expressions behind RDLC fields?
For example, let's say that I have a DateTime field in my datasource that may either have a valid value or may be null...
Jarv asked 2/7, 2010 at 23:17
4
As I understand, in languages such as Haskell, and also as part of the lambda calculus, each lambda expression has its own scope, so if I have nested lambda expressions such as: \x -> (\x -> ...
Hangbird asked 29/4, 2016 at 15:31
6
Solved
I try to make my custom orderby extension method, i successfully worked my code but in addition i want to list null or empty or zero values last in result, anyone can help me about that issue ?
He...
Sanguinary asked 28/11, 2012 at 12:2
0
When debugging my code in vscode I noticed that it can't seem to find any functions I call. I tried adding to main.rs:
pub fn factorial(n: usize) -> usize {
if n == 0 {
1
} else {
n * factor...
Leucine asked 2/1, 2021 at 20:24
2
Solved
val exp = "( 0 == 1 && 10 > 11 ) || ( 10 < 9 ) && ( 10 == 10)"
val result: Boolean = evaluate(exp) //result = true/false
How can I write a simple program in Android (Kotlin)...
Gabey asked 5/6, 2020 at 14:47
3
Solved
I am using .NET4.5 and C# I fancied creating extension method that would allow me to pass property of object and if Id of that object is 0 then return null otherwise return that property value.
I ...
Peridot asked 14/10, 2015 at 9:5
2
Solved
Note: please pay attention carefully this is not a duplicate.
I need to create the following Lambda expression:
() => model.property
the model and its property will be determine at runtime. I w...
Daberath asked 24/12, 2020 at 5:52
5
Solved
I'm trying to highlight a field when the value has the word 'deadline' in it. I'm trying to use the expression:
=IIf(Fields!Notes.Value like "%deadline%","Yellow","Transparent")
in the Background...
Serra asked 25/1, 2012 at 20:32
1
Solved
For my hobby project ConvertTo-Expression, I would like the output expression of my cmdlet (by default) compliant with the Constrained Language mode. For this, I might include a hardcoded list with...
Ephemerid asked 12/11, 2020 at 14:14
7
Solved
I have some list (where T is a custom class, and class has some properties).
I would like to know how to change one or more values inside of it by using Lambda Expressions, so the result will be th...
Wendt asked 20/10, 2012 at 8:40
© 2022 - 2024 — McMap. All rights reserved.