Пример #1
0
 /// <summary>
 /// Mix in to facilitate converting to FormLinks from interfaces where implicit operators aren't
 /// available.  This particular extension function shouldn't need an explicitly defined generic
 /// when calling it.  It only works with non-abstract class types, though.
 /// </summary>
 public static IFormLinkNullableGetter <TGetter> AsNullableLinkGetter <TGetter>(this IMapsToGetter <TGetter> rec)
     where TGetter : class, IMajorRecordCommonGetter
 {
     return(new FormLinkNullable <TGetter>(rec.FormKey));
 }
Пример #2
0
 /// <summary>
 /// Mix in to facilitate converting to FormLinks from interfaces where implicit operators aren't
 /// available.  This particular extension function shouldn't need an explicitly defined generic
 /// when calling it.  It only works with non-abstract class types, though.
 /// </summary>
 public static IFormLinkGetter <TGetter> AsLinkGetter <TGetter>(this IMapsToGetter <TGetter> rec)
     where TGetter : class, IMajorRecordGetter
 {
     return(new FormLink <TGetter>(rec.FormKey));
 }