logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
cjansen Posted: Friday, August 10, 2018 7:58:36 AM(UTC)
 
rats.

Extension methods to the rescue! haha
Paul Rayman Posted: Friday, August 10, 2018 4:21:57 AM(UTC)
 
Yes you are right.
Some classes have a constructor with an Internal access modifier.
Basically, this is done in order to prevent the creation of an object by the user, when such an object requires special tuning.
cjansen Posted: Thursday, August 9, 2018 10:45:52 AM(UTC)
 
Just wondering if I've finally gone slightly mad or has the ability to extend classes been locked out?

private constructors?

I'm trying something like

Code:
public class MyPdfField: Patagames.Pdf.Net.PdfField, IPdfField
{ }


but getting errors about not have a parameterless constructor, no constructor at all when I check, and the runtime isn't creating a public parameterless constructor so... I'm thinking there's a private constructor.

yes?