HighTechTalks DotNet Forums  

Replacement of COM Script Control in .NET 2.0

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Replacement of COM Script Control in .NET 2.0 in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old   
John Vottero
 
Posts: n/a

Default Re: Replacement of COM Script Control in .NET 2.0 - 08-03-2007 , 01:31 PM






"Wilde" <Wilde (AT) discussions (DOT) microsoft.com> wrote

Quote:
I don't see how this solves my problem. I am looking for a .NET component
that I can access in C# that can evaluate mathematical expressions. This
looks like command based shell to me..... Did I miss something?

You can call PowerShell like this:

using (RunspaceInvoke ri = new RunspaceInvoke())
{
Collection<PSObject> results = ri.Invoke("2 + 2");

Console.WriteLine("Result:");
foreach (PSObject po in results)
{
Console.WriteLine(po.BaseObject);
}
}





Reply With Quote
  #12  
Old   
intrader
 
Posts: n/a

Default Re: Replacement of COM Script Control in .NET 2.0 - 09-08-2007 , 04:16 PM






Try a C# scripting language as described in the following article

http://www.codeproject.com/Purgatory...lect=211655 8


Wilde wrote:

Quote:
I am looking for a scripting component in .NET 2.0 that can replace the
functionality of the COM script control. I am particularly interested in the
eval function. Can you help me?

Reply With Quote
  #13  
Old   
Piter
 
Posts: n/a

Default RE: Replacement of COM Script Control in .NET 2.0 - 10-18-2007 , 12:08 PM



You can try Script.NET - a language for embedding scripting functionality into
..NET applications.

http://www.protsyk.com/scriptdotnet ,
http://www.codeproject.com/useritems/ScriptNET.asp



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.