I am trying access properties of particular inbulit class in c# but i am not getting how to pass a class static variable and pass as an argument to a method.
Here is the class I want to pass as argument:
public class PageSize
{
//
public static readonly Rectangle A0;
//
public static readonly Rectangle A1;
}
Now I have method where i want to pass the variables of the above class as argument like this:
public void NewExportToPDFforLetter(StringWriter sw, string FileName, PageSize s )
{
//s = new PageSize();
StringReader sr = new StringReader(sw.ToString());
Document pdfDoc = new Document(s.A0, 30f, 30f, 30f, 30f);
}
I am getting error at s.A0. Any help will be appreciated.
statickeyword fromA0andA1