private static string GetObsolete(IObsolete ob) { if (ob.Obsolete) { return($@" [{Constants.Obsolete}(""{ob.ObsoleteMessage}"")]"); } else { return(string.Empty); } }
public static string GetObsolete(IObsolete ob) { if (ob.Obsolete) { return($@"[{nameof(ObsoleteAttribute)}(""{ob.ObsoleteMessage}"")]"); } else { return(string.Empty); } }
protected override void RemoveItemByView(object itemsByView, IObsolete item) { RemoveItemByView((Dictionary <string, SortedDictionary <string, Reader> >)itemsByView, (Reader)item); }
protected override void RemoveItemByView(object itemsByView, IObsolete item) { RemoveItemByView((Dictionary <string, SortedDictionary <DateTime, Item> >)itemsByView, (Item)item); }
protected abstract void RemoveItemByView(object itemsByView, IObsolete item);
protected virtual void Remove(SortedDictionary <DateTime, IObsolete> items, object itemsByView, IObsolete item) { items.Remove(item.TimeStemp); RemoveItemByView(itemsByView, item); }