PowerShell Answers

Adventures in PowerShell

About the author

Author Name is someone.
E-mail me Send mail

Recent posts

Recent comments

Don't show

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Custom objects, custom formatting

One of the things that comes up quite often in my PowerShell classes is using your own .Net types so I though I'd put up a couple of entries based on a demo that I do.

I've put a zip file with all of the code mentioned in these posts into my download area.

I created a small .Net assembly containing two types, Bank and Account.

and compiled them into a file called Accounts.dll.

Now I can use Reflection.Assembly to load the dll

and create and use objects from the assembly

In the next post I'll add a custom format file so that negative bank account balances are displayed a (1000) rather than -1000.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by tb on Monday, March 03, 2008 2:13 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

Friday, May 16, 2008 4:13 AM