PdfSharp.Shared
Helper class for code migration to nullable reference types.
Throws an InvalidOperationException because an expression which must not be null is null.
The message.
Throws InvalidOperationException. Use this function during the transition from older C# code
to new code that uses nullable reference types.
The type this function must return to be compiled correctly.
An optional message used for the exception.
Nothing, always throws.
Throws InvalidOperationException. Use this function during the transition from older C# code
to new code that uses nullable reference types.
The type this function must return to be compiled correctly.
The type of the object that is null.
An optional message used for the exception.
Nothing, always throws.
System message ID.
Offsets to ensure that all message IDs are pairwise distinct
within PDFsharp foundation.
Product version information from git version tool.
The major version number of the product.
The minor version number of the product.
The patch number of the product.
The Version pre-release string for NuGet.
The full version number.
The full semantic version number created by GitVersion.
The full informational version number created by GitVersion.
The branch name of the product.
The commit date of the product.
(PDFsharp) System message.
(PDFsharp) System message.
(PDFsharp) System message.
Experimental throw helper.
URLs used in PDFsharp are maintained only here.
URL for index page.
"https://docs.pdfsharp.net/"
URL for missing assets error message.
"https://docs.pdfsharp.net/link/download-assets.html"
URL for missing font resolver.
"https://docs.pdfsharp.net/link/font-resolving.html"
URL for missing MigraDoc error font.
"https://docs.pdfsharp.net/link/migradoc-font-resolving-6.2.html"
URL shown when a PDF file cannot be opened/parsed.
"https://docs.pdfsharp.net/link/cannot-open-pdf-6.2.html"
Required to compile init-only setters in .NET Standard and .NET Framework 4.71.
Represent a type can be used to index a collection either from the start or the end.
Index is used by the C# compiler to support the new index syntax
int[] someArray = new int[5] { 1, 2, 3, 4, 5 } ;
int lastElement = someArray[^1]; // lastElement = 5
Construct an Index using a value and indicating if the index is from the start or from the end.
The index value. it has to be zero or positive number.
Indicating if the index is from the start or from the end.
If the Index constructed from the end, index value 1 means pointing at the last element and index value 0 means pointing at beyond last element.
Create an Index pointing at first element.
Create an Index pointing at beyond last element.
Create an Index from the start at the position indicated by the value.
The index value from the start.
Create an Index from the end at the position indicated by the value.
The index value from the end.
Returns the index value.
Indicates whether the index is from the start or the end.
Calculate the offset from the start using the giving collection length.
The length of the collection that the Index will be used with. length has to be a positive value
For performance reason, we don’t validate the input length parameter and the returned offset value against negative values.
we don’t validate either the returned offset is greater than the input length.
It is expected Index will be used with collections which always have non-negative length/count. If the returned offset is negative and
then used to index a collection will get out of range exception which will be same affect as the validation.
Indicates whether the current Index object is equal to another object of the same type.
An object to compare with this object
Indicates whether the current Index object is equal to another Index object.
An object to compare with this object
Returns the hash code for this instance.
Converts integer number to an Index.
Converts the value of the current Index object to its equivalent string representation.
Represent a range has start and end indexes.
Range is used by the C# compiler to support the range syntax.
int[] someArray = new int[5] { 1, 2, 3, 4, 5 };
int[] subArray1 = someArray[0..2]; // { 1, 2 }
int[] subArray2 = someArray[1..^0]; // { 2, 3, 4, 5 }
Represent the inclusive start index of the Range.
Represent the exclusive end index of the Range.
Construct a Range object using the start and end indexes.
Represent the inclusive start index of the range.
Represent the exclusive end index of the range.
Indicates whether the current Range object is equal to another object of the same type.
An object to compare with this object
Indicates whether the current Range object is equal to another Range object.
An object to compare with this object
Returns the hash code for this instance.
Converts the value of the current Range object to its equivalent string representation.
Create a Range object starting from start index to the end of the collection.
Create a Range object starting from first element in the collection to the end Index.
Create a Range object starting from first element to the end.
Calculate the start offset and length of range object using a collection length.
The length of the collection that the range will be used with. length has to be a positive value.
For performance reason, we don’t validate the input length parameter against negative values.
It is expected Range will be used with collections which always have non-negative length/count.
We validate the range is inside the length scope though.
String.Contains implementation for .NET Framework and .NET Standard as an extension method.