All pastes #940501 Raw Edit

Someone

public text v1 · immutable
·published 2008-03-13 00:38 UTC
rendered paste body
...
    public static class Viewer

    {

        ...variables etc...

        //construct

        static Viewer()

        {

            ...
        }



        //NEED HELP HERE
        private static void setProperty(string pProperty, string pValue)

        {

            Type type = Type.GetType("Viewer");

            PropertyInfo prop = type.GetProperty(pProperty);

            prop.SetValue(null , pValue, null);

        }

        
    }