Class EntryReferenceExtensions
Inheritance
EntryReferenceExtensions
Assembly: cs.temp.dll.dll
Syntax
public static class EntryReferenceExtensions
Methods
GetEntry<T>(IReadOnlyEntryReference<IEntry>)
Get the referenced entry casted to the specified type.
Declaration
public static T GetEntry<T>(this IReadOnlyEntryReference<IEntry> source)
where T : IEntry
Parameters
Returns
Type |
Description |
T |
Returns the referenced entry that has been cast to the specified type. If the entry cannot be cast, default value is returned.
|
Type Parameters
TryGetEntry<T>(IReadOnlyEntryReference<IEntry>, out T)
Try to cast the referenced entry to the specified type.
Declaration
public static bool TryGetEntry<T>(this IReadOnlyEntryReference<IEntry> source, out T result)
where T : IEntry
Parameters
Returns
Type |
Description |
Boolean |
Returns True if the referenced entry could be cast to the specified type. Otherwise, it returns False.
|
Type Parameters