public static TContentItem SetInteger <TContentItem>(this TContentItem contentItem, string name, long?value) where TContentItem : IContentElement { IntegerField field = contentItem.GetField <IntegerField>(name); field.Value = value; return(contentItem); }
public static long?GetInteger(this IContentElement contentItem, string name) { IntegerField field = contentItem.GetField <IntegerField>(name); return(field.Value); }