/// <summary> /// Initializes a new instance of the <see cref="DatabaseParameterInfo" /> class. /// </summary> /// <param name="parameterName">Name of the parameter.</param> /// <param name="parameterLayout">The parameter layout.</param> public DatabaseParameterInfo(string parameterName, Layout parameterLayout) { Name = parameterName; Layout = parameterLayout; }
internal bool TryGetCachedLayoutValue(Layout layout, out string value) { if (layoutCache == null) { value = null; return false; } lock (layoutCache) { return layoutCache.TryGetValue(layout, out value); } }
/// <summary> /// Initializes a new instance of the <see cref="CsvColumn" /> class. /// </summary> /// <param name="name">The name of the column.</param> /// <param name="layout">The layout of the column.</param> public CsvColumn(string name, Layout layout) { Name = name; Layout = layout; }
internal string AddCachedLayoutValue(Layout layout, string value) { if (layoutCache == null) { layoutCache = new Dictionary<Layout, string>(); } lock (layoutCache) { layoutCache[layout] = value; } return value; }
/// <summary> /// Initializes a new instance of the <see cref="MethodCallParameter" /> class. /// </summary> /// <param name="name">The name of the parameter.</param> /// <param name="layout">The layout.</param> /// <param name="type">The type of the parameter.</param> public MethodCallParameter(string name, Layout layout, Type type) { Type = type; Name = name; Layout = layout; }
/// <summary> /// Initializes a new instance of the <see cref="MethodCallParameter" /> class. /// </summary> /// <param name="parameterName">Name of the parameter.</param> /// <param name="layout">The layout.</param> public MethodCallParameter(string parameterName, Layout layout) { Type = typeof (string); Name = parameterName; Layout = layout; }
/// <summary> /// Initializes a new instance of the <see cref="MethodCallParameter" /> class. /// </summary> /// <param name="layout">The layout to use for parameter value.</param> public MethodCallParameter(Layout layout) { Type = typeof (string); Layout = layout; }
/// <summary> /// Initializes a new instance of the <see cref="ConditionLayoutExpression" /> class. /// </summary> /// <param name="layout">The layout.</param> public ConditionLayoutExpression(Layout layout) { Layout = layout; }