ISE: Modify Class

by Nov 1, 2011

I'm a newbie here, so Hello Everybody,

I would like to ask the following:

I can use ISE only for developing. Company policy.

I'm developing a script which contains a new object type, defined like that:

$DefClass = @'
public class PropType{
    public string name1;
    public string name2;

Add-Type $DefClass

But every time, if I would like to modify a member, like the type of the property from string to Int, in that case I have to restart the whole PowerShell ISE which is importing the SnapIns too, and this is wasting my time very well.

Do you have any idea, how can I modify a property, or remove a property from a class. or just redefine a class?

Many thanks