-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add XML comments to all public members (#561)
- Loading branch information
Showing
42 changed files
with
1,504 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,47 @@ | ||
namespace QRCoder | ||
{ | ||
/// <summary> | ||
/// Abstract base class for generating QR codes. | ||
/// Derived classes typically render a QR code into a specific format (png, System.Drawing.Bitmap, PDF, etc). | ||
/// </summary> | ||
public abstract class AbstractQRCode | ||
{ | ||
/// <summary> | ||
/// Gets or sets the QRCodeData used to generate the QR code. | ||
/// </summary> | ||
protected QRCodeData QrCodeData { get; set; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the AbstractQRCode class. | ||
/// </summary> | ||
protected AbstractQRCode() { | ||
this.QrCodeData = null!; | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the AbstractQRCode class with the specified QRCodeData. | ||
/// </summary> | ||
/// <param name="data">The QRCodeData object generated by QRCodeGenerator.CreateQrCode().</param> | ||
protected AbstractQRCode(QRCodeData data) { | ||
this.QrCodeData = data; | ||
} | ||
|
||
/// <summary> | ||
/// Set a QRCodeData object that will be used to generate QR code. Used in COM Objects connections | ||
/// Sets the QRCodeData object that will be used to generate the QR code. | ||
/// This method is useful for COM objects connections. | ||
/// </summary> | ||
/// <param name="data">Need a QRCodeData object generated by QRCodeGenerator.CreateQrCode()</param> | ||
/// <param name="data">The QRCodeData object generated by QRCodeGenerator.CreateQrCode().</param> | ||
virtual public void SetQRCodeData(QRCodeData data) { | ||
this.QrCodeData = data; | ||
} | ||
|
||
/// <summary> | ||
/// Disposes the QRCodeData object. | ||
/// </summary> | ||
public void Dispose() | ||
{ | ||
this.QrCodeData?.Dispose(); | ||
this.QrCodeData = null!; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.