本文整理汇总了C#中IParameter.GetHashCode方法的典型用法代码示例。如果您正苦于以下问题:C# IParameter.GetHashCode方法的具体用法?C# IParameter.GetHashCode怎么用?C# IParameter.GetHashCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IParameter
的用法示例。
在下文中一共展示了IParameter.GetHashCode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DisplayParameterProperties
public void DisplayParameterProperties(IParameter parameter, TreeNode parameterNode)
{
if (this._currentHashCode == parameter.GetHashCode()) return;
DataTable dt = new DataTable("MyData");
dt.Columns.Add("Property", stringType);
dt.Columns.Add("Value", stringType);
string dir = "";
switch(parameter.Direction)
{
case ParamDirection.Input:
dir = "IN";
break;
case ParamDirection.InputOutput:
dir = "INOUT";
break;
case ParamDirection.Output:
dir = "OUT";
break;
case ParamDirection.ReturnValue:
dir = "RETURN";
break;
}
dt.Rows.Add(new object[] {"Name", parameter.Name});
dt.Rows.Add(new object[] {"Alias", parameter.Alias});
dt.Rows.Add(new object[] {"Description", parameter.Description});
dt.Rows.Add(new object[] {"Direction", dir});
dt.Rows.Add(new object[] {"Ordinal", parameter.Ordinal.ToString()});
dt.Rows.Add(new object[] {"TypeName", parameter.TypeName});
dt.Rows.Add(new object[] {"DataTypeNameComplete", parameter.DataTypeNameComplete});
dt.Rows.Add(new object[] {"NumericPrecision", parameter.NumericPrecision.ToString()});
dt.Rows.Add(new object[] {"NumericScale", parameter.NumericScale.ToString()});
dt.Rows.Add(new object[] {"CharacterMaxLength", parameter.CharacterMaxLength.ToString()});
dt.Rows.Add(new object[] {"CharacterOctetLength", parameter.CharacterOctetLength.ToString()});
dt.Rows.Add(new object[] {"LanguageType", parameter.LanguageType});
dt.Rows.Add(new object[] {"DbTargetType", parameter.DbTargetType});
dt.Rows.Add(new object[] {"HasDefault", parameter.HasDefault ? "True" : "False"});
dt.Rows.Add(new object[] {"Default", parameter.Default});
dt.Rows.Add(new object[] {"IsNullable", parameter.IsNullable ? "True" : "False"});
dt.Rows.Add(new object[] {"LocalTypeName", parameter.LocalTypeName});
this.Grid.DataSource = dt;
this.InitializeGrid();
this.Text = "IParameter Properties";
this.lnkHELP.Text = "IParameter Help ...";
this.helpInterface = "IParameter";
this._currentHashCode = parameter.GetHashCode();
}
示例2: DisplayParameterProperties
public void DisplayParameterProperties(IParameter parameter, TreeNode parameterNode)
{
if (this._currentHashCode == parameter.GetHashCode()) return;
propGrid.SelectedObject = parameter;
// switch (parameter.Direction)
// {
// case ParamDirection.Input:
// dir = "IN";
// break;
// case ParamDirection.InputOutput:
// dir = "INOUT";
// break;
// case ParamDirection.Output:
// dir = "OUT";
// break;
// case ParamDirection.ReturnValue:
// dir = "RETURN";
// break;
// }
this._currentHashCode = parameter.GetHashCode();
}