Category Archives: .NET

An Explanation of the .NET add_EventName / remove_EventName Methods for PowerShell Scripters

If you have ever attempted to write a little WinForms or WPF UI using PowerShell you have no doubt run across a method like add_Click() e.g. This might be a bit confusing if you are looking at C# examples or … Continue reading

Posted in .NET, PowerShell | 4 Comments

BlackJack, NamedPipes and PowerShell Classes – Oh My!

In my last blog post, I introduced you to using .NET named pipes to implement BlackJack across different PowerShell processes and even across the network.  In this blog post, we will take a look at what it is like to … Continue reading

Posted in .NET, PowerShell, PowerShell 5.0 | 2 Comments

Windows PowerShell and Named Pipes

A named pipe is a stream-based mechanism for inter-process communication (IPC).  The .NET Framework has two types for allow you to use named pipes: System.IO.Pipes.NamedPipeServerStream System.IO.Pipes.NamedPipeClientStream MSDN describes named pipes like so: Named pipes provide one-way or duplex pipes for … Continue reading

Posted in .NET, PowerShell | 1 Comment

PDC 2005: Design Guidelines Pre-conference Notes

Here are some notes on this pre-con session (good session so far): EditorBrowsableState.Never/Always (control Intellisense) For abbreviation names – use search engine test – only use if found early in search Method overloads need to do semantically the same thing … Continue reading

Posted in .NET | 1 Comment

Exception Handling & Memory Management Slide Deck

Brad Abrams has made available a slide deck he has been pitching to .NET programmers.  I agree with almost everything except the slide titled "catch (Exception e) is your friend". Put me in the camp of "catch (Exception ex)" is … Continue reading

Posted in .NET | Leave a comment