public hotstring() { this.categoryField = "None"; this.forceclearField = false; this.tabifyField = false; this.typeField = hotstringType.Paste; this.enabledField = true; }
/// <summary> /// Gets and instance of <see cref="EnumRule{T}"/> or derived class. /// </summary> /// <param name="this">The enum value to get the instance for</param> /// <returns> /// <see cref="EnumRule{T}"/> or derived class. /// </returns> /// <seealso cref="HotstringCodeExcludeRules"/> /// <seealso cref="HotStringPasteExcludeRules"/> /// <seealso cref="HotStringUnKnowExcludeRules"/> public static EnumRule <HotStringOptionsEnum> GetHotstringRules(this hotstringType @this) { switch (@this) { case hotstringType.UnKnown: return(new HotStringUnKnowExcludeRules()); case hotstringType.Paste: return(new HotStringPasteExcludeRules()); case hotstringType.Code: return(new HotstringCodeExcludeRules()); default: return(new EnumRule <HotStringOptionsEnum>()); } }