Category

.NET

Category

Dynamic code execution is a powerful feature that enhances application capabilities. In this article, we explore executing C# and Visual Basic code dynamically at runtime. Learn how to produce an assembly, execute it using reflection, handle compile/runtime errors using the Roslyn compiler.

This article provides a comprehensive guide on implementing Named Pipes for Interprocess Communication (IPC) using the PipeStream class in the System.IO.Pipes namespace. It covers the implementation of the IServer and IClient interfaces. The article includes sample code snippets for creating a core component that handles common functionalities for both NamedPipeClient and NamedPipeServer, reading and writing to a PipeStream, implementing the NamedPipeServer class, and disposing of the named pipe server stream. If you’re interested in using Named Pipes for IPC, this article will guide you through the implementation process.

In this article, we’ll delve into Interprocess Communication (IPC) techniques, such as Named Pipes, Files, Shared Memory, Message Queues, Sockets, and Remote Procedure Calls (RPC). We’ll explore their implementation using a core IPC communication system and create an IPCConnection interface that sends and receives messages and is non-blocking and fully asynchronous.