public OperationHelp(OperationSymbol operationSymbol, CultureInfo ci, OperationHelpEntity entity) { this.OperationSymbol = operationSymbol; this.Culture = ci; this.Info = HelpGenerator.GetOperationHelp(operationSymbol); if (entity != null) { HasEntity = true; UserDescription = entity.Description; } Entity = new Lazy <OperationHelpEntity>(() => HelpLogic.GlobalContext(() => { if (entity == null) { entity = new OperationHelpEntity { Culture = this.Culture.ToCultureInfoEntity(), Operation = this.OperationSymbol, } } ; return(entity); })); }
public OperationHelp(OperationSymbol operationSymbol, Type type, string?userDescription) { this.OperationSymbol = operationSymbol; this.Type = type; this.Info = HelpGenerator.GetOperationHelp(type, operationSymbol); this.UserDescription = userDescription; }
public OperationHelp(OperationSymbol operationSymbol, Type type) { this.OperationSymbol = operationSymbol; this.Type = type; this.Info = HelpGenerator.GetOperationHelp(type, operationSymbol); }