11 instantiations of SqlChars
System.Data (11)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (4)
395result = new SqlChars( charBuffer ); 400result = new SqlChars( sc ); 413result = new SqlChars( xmlValue.Value.ToCharArray() ); 427result = new SqlChars( stringValue.Value.ToCharArray() );
fx\src\data\System\Data\Common\SQLConvert.cs (1)
632return new SqlChars(((string)value).ToCharArray());
fx\src\data\System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
102return (new SqlChars((SqlString)tmp));
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
951value = new SqlChars(rgchNew);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2315return new SqlChars(data);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
505sqlVal = new SqlChars((System.Char[])comVal);
fx\src\data\System\Data\SQLTypes\SQLChars.cs (2)
454 return new SqlChars(value); 589 return new SqlChars((char[])null);
79 references to SqlChars
System.Data (79)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (2)
79SqlChars GetSqlChars( int ordinal ); 99SqlChars GetSqlCharsRef( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (2)
87void SetSqlChars( int ordinal, SqlChars value ); 90void SetSqlChars( int ordinal, SqlChars value, int offset );
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
127ht.Add( typeof( SqlChars ), ExtendedClrTypeCode.SqlChars ); 246else if (value.GetType() == typeof(SqlChars))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (4)
382public virtual SqlChars GetSqlChars( int ordinal ) { 432public virtual SqlChars GetSqlCharsRef( int ordinal ) { 755public virtual void SetSqlChars( int ordinal, SqlChars value ) 765public virtual void SetSqlChars( int ordinal, SqlChars value, int offset ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (4)
440public virtual SqlChars GetSqlChars( int ordinal ) { 490public virtual SqlChars GetSqlCharsRef( int ordinal ) { 813public virtual void SetSqlChars( int ordinal, SqlChars value ) 823public virtual void SetSqlChars( int ordinal, SqlChars value, int offset ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
298public virtual SqlChars GetSqlChars(int ordinal) { 563public virtual void SetSqlChars(int ordinal, SqlChars value) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (9)
385internal static SqlChars GetSqlChars( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData, SmiContext context ) { 386SqlChars result; 389result = SqlChars.Null; 410result = SqlChars.Null; 424result = SqlChars.Null; 1481internal static void SetSqlChars( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlChars value ) { 1629case ExtendedClrTypeCode.SqlChars: SetSqlChars_LengthChecked( sink, setters, ordinal, metaData, (SqlChars) value, offset ); break; 2684private static void SetSqlChars_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlChars value, int offset ) { 3443private static void SetSqlChars_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SqlChars value, int offset, int length ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
58typeof(SqlChars),
fx\src\data\System\Data\Common\DataStorage.cs (1)
103typeof(SqlChars),
fx\src\data\System\Data\Common\SQLConvert.cs (5)
383public static SqlChars ConvertToSqlChars(object value) { 386return SqlChars.Null; 392return (SqlChars)value; 394throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlChars)); 721return new string(((SqlChars)value).Value);
fx\src\data\System\Data\Common\SQLTypes\SQLCharsStorage.cs (14)
22private SqlChars[] values; 25: base(column, typeof(SqlChars), SqlChars.Null, SqlChars.Null, StorageType.SqlChars) { 47throw ExprException.Overflow(typeof(SqlChars)); 76values[record] = SqlChars.Null; 79values[record] = (SqlChars)value; 84SqlChars[] newValues = new SqlChars[capacity]; 107Debug.Assert((value.GetType() == typeof(SqlChars)), "wrong input type"); 118return new SqlChars[recordCount]; 122SqlChars[] typedStore = (SqlChars[]) store; 128values = (SqlChars[]) store;
fx\src\data\System\Data\Sql\SqlMetaData.cs (7)
939public SqlChars Adjust(SqlChars value) { 1102else if (dataType == typeof(SqlChars)) 1103value = this.Adjust((SqlChars)value); 1262else if (dataType == typeof(SqlChars)) 1265SqlChars sch = (SqlChars)value;
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2305virtual public SqlChars GetSqlChars(int i) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
794public override SqlChars GetSqlChars(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
312else if (dataType == typeof(SqlChars))
fx\src\data\System\Data\SqlClient\SqlParameter.cs (7)
932else if (typeof(SqlChars) == currentType) { 933value = new string(((SqlChars)value).Value); 1644if (value is SqlChars) { 1645return ((SqlChars)value).Value.Length; 1697if (value is SqlChars) { 1698if (((SqlChars) value).IsNull) 1701return ((SqlChars) value).Value.Length;
fx\src\data\System\Data\SqlClient\TdsParser.cs (10)
8335Debug.Assert(value is SqlChars, "Unknown value for Ansi datatype"); 8336s = new String(((SqlChars)value).Value); 10026if (value is SqlChars) { 10027String sch = new String(((SqlChars)value).Value); 10056if (value is SqlChars) { 10057return WriteCharArray(((SqlChars)value).Value, actualLength, offset, stateObj, canAccumulate:false); 10981if (value is SqlChars) { 10982String sch = new String(((SqlChars)value).Value); 11000if (value is SqlChars) { 11001return SerializeCharArray(((SqlChars)value).Value, actualLength, offset);
fx\src\data\System\Data\SQLTypes\SQLChars.cs (5)
448 public static explicit operator SqlString(SqlChars value) { 453 public static explicit operator SqlChars(SqlString value) { 587 public static SqlChars Null { 603 private SqlChars m_sqlchars; // the SqlChars object 610 internal StreamOnSqlChars(SqlChars s) {
fx\src\data\System\Data\xmlsaver.cs (1)
244if (type == typeof(string) ||type == typeof(SqlGuid) ||type == typeof(SqlString) || type == typeof(SqlChars))