473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Missing CodeDOM Expression

== POSTED THIS ISSUE SOME TIME AGO BUT GOT NO RESPONSE, IDEAS STILL NEEDED
==

Hi all, I was wondering if anyone has found a way to represent the following
expressions 'AS IS' using the CodeDom:

1. if(!collection.Contains(value)) - negate an expression
2. i++ or i-- - increment or decrement operator expression
3. foreach(int i in integ) - foreach statement

I can re-write these example to look like these:
1. if(collection.Contains(value) == false)
2. i = (i+1) or i = (i-1)
3. use a for loop instead

but I'd rather have the statements 'AS IS'. I don't want to use
CodeSnippetExpression as it wouldn't be cross-language. Any helpful ideas
will be very welcomed.

Regards, Raphael
MCAD (C#)
Nov 15 '05 #1
0 1063

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ron Bullman | last post by:
Hi, I havent been able to find any documentation about @ in the CodeDom context. The problem is when generating C# code from CodeDom it will associate a @-tag with all C# specific types. Why?...
0
by: Vitaly Gorbenko | last post by:
Hello, Does anybody know if there is any way to generate "TypeOf ... Is ..." statement using CodeDom? Here is a sample of what I need to get: If TypeOf oObject Is IMyInterface Then...
1
by: Raphael Iloh | last post by:
Hi all, I was wondering if anyone has found a way to represent the following expressions 'AS IS' using the CodeDom: 1. if(!collection.Contains(value)) - negate an expression 2. i++ or...
7
by: Osvaldo Bisignano | last post by:
I want to generate #region #endregion statements through codedom.
1
by: John Livermore | last post by:
Hello, We have an application that uses CodeDom for dynamic in-memory compilation of code. The same code (library) is used by both an ASP.net web site and a Windows Service. The code runs fine...
3
by: Alexey Lavnikov | last post by:
I'm playing with CodeDOM and CSharpCodeProvider. I've found the following possibilities: CodeDOM -> Assembly C# Source code -> Assembly I miss the C# Source code -> CodeDOM only. Is it there?...
1
by: Marco Trapanese | last post by:
Hi! In my program the user may write a math function into a textbox, for example: sqrt(sin(A*3))^cos(B+5) where A and B are 'tags' for other textboxes (I replace A and B with...
1
by: =?Utf-8?B?QU1lcmNlcg==?= | last post by:
I may have painted myself into a corner with GenerateInMemory=true. My app need a custom user step. Users want to code (sort of - they are not programmers) some refinements to a search...
0
balabaster
by: balabaster | last post by:
I don't know if anyone's got any clue about this, but I have the following expression evaluator which makes use of the CodeDom to evaluate a VB.NET expression at runtime. This gives the system...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.