Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8456307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:30:53+00:00 2026-06-10T12:30:53+00:00

I am wondering if there is any language feature/library/tools/techniques I could use to call

  • 0

I am wondering if there is any language feature/library/tools/techniques I could use to call .NET/C# “functions” in a pipeline in a scripting environment? For example, I have

public interface IFoo
{
    ...
}

public interface IBar
{
    IFoo Load(string fileName);
    IFoo Replace(string oldValue, string newValue);
    void Save(string fileName);
}

Then wrap them in util.exe with proper Main(). Now I want to use them like piped DOS command:

util.exe -load in.txt | util.exe -replace x y | util.exe -save output.txt

Is it possible? Is there any constraint on IFoo because it can be complex data structure that can’t be easily serialized to ASCII string. What’s the way to get there?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:30:54+00:00Added an answer on June 10, 2026 at 12:30 pm

    PowerShell is very good option.

    First of all you can call any compiled code directly, so if you don’t want to make actual cmdlets in C# you can write calling code in PowerShell and use all its pipeline plumbing to pass data between steps.

    I.e. calling Ping.Send:

    $ping = New-Object System.Net.NetworkInformation.Ping
    $ping.send("localhost")
    

    You can also implement CmdLets for nice PowerShell code and greater control – sample http://www.codeproject.com/Articles/32999/How-to-Write-a-Custom-PowerShell-Cmdlet-Part-I

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wondering if there are any statically typed, embeddable scripting languages. Python, JavaScript,
I was wondering - are there any known techniques to control access to a
Are there any software packages or projects that provide the scripting language shells? I
If I were looking to create my own language are there any tools that
I was wondering if there's a language feature in Java in which methods of
Just wondering is there any way I can check whether the url links to
Been wondering are there any ways to measure the learning performance of ANNs. Thanks
I am wondering is there any way we can test the font size/color of
i just wondering is there any performance issue or anything thing wrong if that
I am wondering is there any way to execute following shell script, which waits

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.