Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
PowerShell Development
>
Cmdlet Development
PowerShell and Overridden Object Operators
Last Post 08 Jan 2010 11:44 AM by
Adam Driscoll
. 0 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
Adam Driscoll
New Member
Posts:3
08 Jan 2010 11:44 AM
How can one create an object that when its operators, such as:
operator > (Object obj1, Object obj2)
operator < (Object obj1, Object obj2)
are overridden PowerShell utilizes these operators?
Such that:
where-object { $CustomObject -gt 12 }
would call:
public static bool operator > (Object object1, Object object2)
Is it possible?
To clarify:
-The object exists within a .NET assembly
-The object has overridden comparison operators
-I am returning the object through a cmdlet
-PowerShell does not seem to honor these operators
You are not authorized to post a reply.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
PowerShell Development
>
Cmdlet Development
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2