lifted-operators Questions

2

Solved

I was looking at this article and am struggling to follow the VB.NET example that explains lifted operators. There doesn't seem to be an equivalent C# example or tutorial. I don't have much experie...
Offering asked 30/7, 2010 at 9:13

3

Solved

Consider the following code: DateTime t = DateTime.Today; bool isGreater = t > null; With Visual Studio 2010 (C# 4, .NET 4.0), I get the following warning: warning CS0458: The result of t...
Blueweed asked 24/10, 2012 at 9:10

3

Why doesn't bool? support lifted && and ||? They could have lifted the true and false operators which would have indirectly added lifted && and ||. The operators | and & are al...

4

Solved

Consider the following statements: int? v1 = null; int? v2 = 5 * v1; What is the value of v2? (null or empty string?) How can I prevent the compiler to mark it as invalid operation? Do I need ...
Caulis asked 25/8, 2009 at 12:19
1

© 2022 - 2024 — McMap. All rights reserved.