5 instantiations of Int16
PresentationCore (4)
Core\CSharp\System\Windows\Media\Animation\Generated\Int16Animation.cs (4)
235Int16 from = new Int16(); 236Int16 to = new Int16(); 237Int16 accumulated = new Int16(); 238Int16 foundation = new Int16();
PresentationFramework (1)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5532bamlType.DefaultConstructor = delegate() { return new System.Int16(); };
917 references to Int16
mscorlib (134)
microsoft\win32\oavariantlib.cs (1)
44typeof(Int16),
system\console.cs (6)
1044if (width < srWindow.Right + 1 || width >= Int16.MaxValue) 1046if (height < srWindow.Bottom + 1 || height >= Int16.MaxValue) 1112if (csbi.srWindow.Left >= Int16.MaxValue - width) 1118if (csbi.srWindow.Top >= Int16.MaxValue - height) 1277if (left < 0 || left >= Int16.MaxValue) 1279if (top < 0 || top >= Int16.MaxValue)
system\convert.cs (13)
123(RuntimeType)typeof(Int16), 824if (value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 840if (value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 846if (value < Int16.MinValue || value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 853if (value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 863if (value < Int16.MinValue || value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 870if (value > (ulong)Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 890return Int16.Parse(value, CultureInfo.CurrentCulture); 896return Int16.Parse(value, NumberStyles.Integer, provider); 2020if (r < Int16.MinValue || r > Int16.MaxValue)
system\datetimeoffset.cs (5)
55private Int16 m_offsetMinutes; 578m_offsetMinutes = (Int16)info.GetValue("OffsetMinutes", typeof(Int16)); 783private static Int16 ValidateOffset(TimeSpan offset) { 791return (Int16)(offset.Ticks / TimeSpan.TicksPerMinute);
system\decimal.cs (2)
864if (temp < Int16.MinValue || temp > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16"));
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (5)
106: TraceLoggingTypeInfo<Int16> 116public override void WriteData(TraceLoggingDataCollector collector, ref Int16 value) 418: TraceLoggingTypeInfo<Int16[]> 428public override void WriteData(TraceLoggingDataCollector collector, ref Int16[] value) 695collector.AddScalar(EnumHelper<Int16>.Cast(value));
System\Diagnostics\Eventing\TraceLogging\Statics.cs (3)
613else if (elementType == typeof(Int16)) 687else if (underlyingType == typeof(Int16)) 725else if (dataType == typeof(Int16))
system\enum.cs (2)
80UInt16 result = (UInt16)(Int16)value; 907if (underlyingType == typeof(Int16))
system\int16.cs (13)
32, IComparable<Int16>, IEquatable<Int16> 54if (value is Int16) { 55return m_value - ((Int16)value).m_value; 61public int CompareTo(Int16 value) { 66if (!(obj is Int16)) { 69return m_value == ((Int16)obj).m_value; 73public bool Equals(Int16 obj) 158public static bool TryParse(String s, out Int16 result) { 162public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out Int16 result) { 167private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out Int16 result) { 181result = (Int16) i; 188result = (Int16) i;
system\internal.cs (5)
68new Dictionary<Int16, IntPtr>(); 73new Dictionary<IntPtr, Int16>(); 103NullableHelper<Int16>(); 117new List<Int16>(); 141SZArrayHelper<Int16>(null);
system\io\unmanagedmemoryaccessor.cs (7)
198public Int16 ReadInt16(Int64 position) { 199int sizeOfType = sizeof(Int16); 202Int16 result; 215result = *((Int16*)(pointer)); 688public void Write(Int64 position, Int16 value) { 689int sizeOfType = sizeof(Int16); 703*((Int16*)pointer) = value;
system\math.cs (1)
272if (value == Int16.MinValue)
system\resources\resourcereader.cs (1)
623else if (type == typeof(Int16))
system\resources\resourcewriter.cs (2)
543else if (type == typeof(Int16)) 627writer.Write((Int16) value);
system\runtime\compilerservices\AsyncMethodBuilder.cs (3)
781(typeof(TResult) == typeof(Int16) && default(Int16) == (Int16)(object)result) ||
system\runtime\interopservices\ComTypes\itypecomp.cs (1)
48void Bind([MarshalAs(UnmanagedType.LPWStr)] String szName, int lHashVal, Int16 wFlags, out ITypeInfo ppTInfo, out DESCKIND pDescKind, out BINDPTR pBindPtr);
system\runtime\interopservices\ComTypes\itypeinfo.cs (16)
81public Int16 cFuncs; 82public Int16 cVars; 83public Int16 cImplTypes; 84public Int16 cbSizeVft; 85public Int16 cbAlignment; 87public Int16 wMajorVerNum; 88public Int16 wMinorVerNum; 103public Int16 cParams; //short cParams; 104public Int16 cParamsOpt; //short cParamsOpt; 105public Int16 oVft; //short oVft; 106public Int16 cScodes; //short cScodes; 108public Int16 wFuncFlags; //WORD wFuncFlags; 157public Int16 vt; 225public Int16 wCode; 226public Int16 wReserved; 322void Invoke([MarshalAs(UnmanagedType.IUnknown)] Object pvInstance, int memid, Int16 wFlags, ref DISPPARAMS pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, out int puArgErr);
system\runtime\interopservices\ComTypes\itypeinfo2.cs (1)
33new void Invoke([MarshalAs(UnmanagedType.IUnknown)] Object pvInstance, int memid, Int16 wFlags, ref DISPPARAMS pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, out int puArgErr);
system\runtime\interopservices\ComTypes\itypelib.cs (3)
46public Int16 wMajorVerNum; 47public Int16 wMinorVerNum; 66void FindName([MarshalAs(UnmanagedType.LPWStr)] String szNameBuf, int lHashVal, [MarshalAs(UnmanagedType.LPArray), Out] ITypeInfo[] ppTInfo, [MarshalAs(UnmanagedType.LPArray), Out] int[] rgMemId, ref Int16 pcFound);
system\runtime\interopservices\ComTypes\itypelib2.cs (1)
35new void FindName([MarshalAs(UnmanagedType.LPWStr)] String szNameBuf, int lHashVal, [MarshalAs(UnmanagedType.LPArray), Out] ITypeInfo[] ppTInfo, [MarshalAs(UnmanagedType.LPArray), Out] int[] rgMemId, ref Int16 pcFound);
system\runtime\interopservices\ucomitypecomp.cs (1)
51void Bind([MarshalAs(UnmanagedType.LPWStr)] String szName, int lHashVal, Int16 wFlags, out UCOMITypeInfo ppTInfo, out DESCKIND pDescKind, out BINDPTR pBindPtr);
system\runtime\interopservices\ucomitypeinfo.cs (17)
84public Int16 cFuncs; 85public Int16 cVars; 86public Int16 cImplTypes; 87public Int16 cbSizeVft; 88public Int16 cbAlignment; 90public Int16 wMajorVerNum; 91public Int16 wMinorVerNum; 106public Int16 cParams; //short cParams; 107public Int16 cParamsOpt; //short cParamsOpt; 108public Int16 oVft; //short oVft; 109public Int16 cScodes; //short cScodes; 111public Int16 wFuncFlags; //WORD wFuncFlags; 162public Int16 vt; 219public Int16 wCode; 220public Int16 wReserved; 320void Invoke([MarshalAs(UnmanagedType.IUnknown)] Object pvInstance, int memid, Int16 wFlags, ref DISPPARAMS pDispParams, out Object pVarResult, out EXCEPINFO pExcepInfo, out int puArgErr); 322void GetDllEntry(int memid, INVOKEKIND invKind, out String pBstrDllName, out String pBstrName, out Int16 pwOrdinal);
system\runtime\interopservices\ucomitypelib.cs (3)
48public Int16 wMajorVerNum; 49public Int16 wMinorVerNum; 69void FindName([MarshalAs(UnmanagedType.LPWStr)] String szNameBuf, int lHashVal, [MarshalAs(UnmanagedType.LPArray), Out] UCOMITypeInfo[] ppTInfo, [MarshalAs(UnmanagedType.LPArray), Out] int[] rgMemId, ref Int16 pcFound);
system\Runtime\InteropServices\Variant.cs (3)
76[FieldOffset(0)] internal Int16 _i2; 85[FieldOffset(0)] internal Int16 _bool; 388public Int16 AsI2 {
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (6)
37new Tuple<Type, PropertyType>(typeof(Int16), PropertyType.Int16), 85public Int16 GetInt16() 87return CoerceScalarValue<Int16>(PropertyType.Int16); 230public Int16[] GetInt16Array() 232return CoerceArrayValue<Int16>(PropertyType.Int16Array); 453else if (typeof(T) == typeof(Int16)) {
system\runtime\interopservices\windowsruntime\ipropertyvalue.cs (2)
37Int16 GetInt16(); 91Int16[] GetInt16Array();
system\runtime\serialization\formatter.cs (1)
149} else if (varType==typeof(Int16)) {
system\runtime\serialization\formatters\binary\binaryconverter.cs (3)
298array = new Int16[length]; 497internal static Type typeofInt16 = typeof(Int16); 522internal static Type typeofInt16Array = typeof(Int16[]);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
113internal void WriteInt16(Int16 value)
system\runtime\serialization\formatters\binary\binaryparser.cs (1)
330internal Int16 ReadInt16()
system\runtime\serialization\formatters\binary\binaryutilclasses.cs (3)
840Int16[] int16A = null; 870int16A = (Int16[])array; 913int16A[index] = Int16.Parse(value, CultureInfo.InvariantCulture);
system\threading\volatile.cs (1)
75var value = location;
system\variant.cs (1)
97typeof(Int16),
PresentationBuildTasks (20)
Base\MS\Internal\IO\Packaging\Compoundfile\ContainerUtilities.cs (1)
306return Marshal.SizeOf(typeof(Int16));
Base\System\IO\Packaging\Compoundfile\versionPair.cs (6)
54internal VersionPair(Int16 major, Int16 minor) 85public Int16 Major 96public Int16 Minor 382private Int16 _major; // Major number 383private Int16 _minor; // Minor number
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
181else if (typeof(Int16).IsAssignableFrom(type))
Framework\System\Windows\Markup\BamlMapTable.cs (3)
188private static Int16 GetKnownStringIdFromName(string stringValue) 1450out Int16 stringId) 1476internal Int16 AddStringInfoMap(
Framework\System\Windows\Markup\BamlRecords.cs (8)
1841internal Int16 ValueId 1875Int16 _valueId; 1934internal Int16 NameId 1973Int16 _nameId; 2028internal Int16 NameId 2057Int16 _nameId; 4104internal Int16 ValueId 4113Int16 _valueId;
Framework\System\Windows\Markup\KnownTypes.cs (1)
5489case KnownElements.Int16: t = typeof(Int16); break;
PresentationCore (106)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (21)
38internal static Int16 InterpolateInt16(Int16 from, Int16 to, Double progress) 54return (Int16)(from + (Int16)addend); 177internal static Int16 AddInt16(Int16 value1, Int16 value2) 179return (Int16)(value1 + value2); 279internal static Int16 SubtractInt16(Int16 value1, Int16 value2) 281return (Int16)(value1 - value2); 404internal static Double GetSegmentLengthInt16(Int16 from, Int16 to) 527internal static Int16 ScaleInt16(Int16 value, Double factor) 529return (Int16)((Double)value * factor); 640internal static bool IsValidAnimationValueInt16(Int16 value) 777internal static Int16 GetZeroValueInt16(Int16 baseValue)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (2)
229else if (typeof(Int16) == type) 233else if (typeof(Int16[]) == type)
Core\CSharp\System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
508public DiscreteInt16KeyFrame(Int16 value) 516public DiscreteInt16KeyFrame(Int16 value, KeyTime keyTime) 544protected override Int16 InterpolateValueCore(Int16 baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
551public EasingInt16KeyFrame(Int16 value) 560public EasingInt16KeyFrame(Int16 value, KeyTime keyTime) 570public EasingInt16KeyFrame(Int16 value, KeyTime keyTime, IEasingFunction easingFunction) 599protected override Int16 InterpolateValueCore(Int16 baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\Int16Animation.cs (32)
45private Int16[] _keyValues; 60Type typeofProp = typeof(Int16?); 69new PropertyMetadata((Int16?)null, propCallback), 76new PropertyMetadata((Int16?)null, propCallback), 83new PropertyMetadata((Int16?)null, propCallback), 107public Int16Animation(Int16 toValue, Duration duration) 119public Int16Animation(Int16 toValue, Duration duration, FillBehavior fillBehavior) 132public Int16Animation(Int16 fromValue, Int16 toValue, Duration duration) 145public Int16Animation(Int16 fromValue, Int16 toValue, Duration duration, FillBehavior fillBehavior) 218protected override Int16 GetCurrentValueCore(Int16 defaultOriginValue, Int16 defaultDestinationValue, AnimationClock animationClock) 235Int16 from = new Int16(); 236Int16 to = new Int16(); 237Int16 accumulated = new Int16(); 238Int16 foundation = new Int16(); 352Int16 accumulator = AnimatedTypeHelpers.SubtractInt16(to, from); 377_keyValues = new Int16[2]; 384_keyValues = new Int16[2]; 391_keyValues = new Int16[1]; 398_keyValues = new Int16[1]; 404_keyValues = new Int16[1]; 425Int16? typedValue = (Int16?)value; 445public Int16? From 449return (Int16?)GetValue(FromProperty); 465public Int16? To 469return (Int16?)GetValue(ToProperty); 485public Int16? By 489return (Int16?)GetValue(ByProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationBase.cs (9)
103return GetCurrentValue((Int16)defaultOriginValue, (Int16)defaultDestinationValue, animationClock); 115return typeof(Int16); 152public Int16 GetCurrentValue(Int16 defaultOriginValue, Int16 defaultDestinationValue, AnimationClock animationClock) 215protected abstract Int16 GetCurrentValueCore(Int16 defaultOriginValue, Int16 defaultDestinationValue, AnimationClock animationClock);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (8)
331protected sealed override Int16 GetCurrentValueCore( 332Int16 defaultOriginValue, 333Int16 defaultDestinationValue, 359Int16 currentIterationValue; 395Int16 fromValue; 643private Int16 GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 954Int16 prevKeyValue = _keyFrames[index - 1].Value; 958Int16 currentKeyValue = _keyFrames[index].Value;
Core\CSharp\System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
912protected Int16KeyFrame(Int16 value) 921protected Int16KeyFrame(Int16 value, KeyTime keyTime) 964typeof(Int16), 979Value = (Int16)value; 986public Int16 Value 990return (Int16)GetValue(ValueProperty); 1007public Int16 InterpolateValue( 1008Int16 baseValue, 1028protected abstract Int16 InterpolateValueCore( 1029Int16 baseValue,
Core\CSharp\System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
359public LinearInt16KeyFrame(Int16 value) 367public LinearInt16KeyFrame(Int16 value, KeyTime keyTime) 393protected override Int16 InterpolateValueCore(Int16 baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
583public SplineInt16KeyFrame(Int16 value) 592public SplineInt16KeyFrame(Int16 value, KeyTime keyTime) 602public SplineInt16KeyFrame(Int16 value, KeyTime keyTime, KeySpline keySpline) 636protected override Int16 InterpolateValueCore(Int16 baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (6)
605data.ShaderConstantFloatRegistersSize = (uint)(sizeof(Int16) * _floatCount); 607data.ShaderConstantIntRegistersSize = (uint)(sizeof(Int16) * _intCount); 609data.ShaderConstantBoolRegistersSize = (uint)(sizeof(Int16) * _boolCount); 772Int16 regIndex = (Int16)i; // put onto stack so next &-operator compiles 773channel.AppendCommandData((byte*)&regIndex, sizeof(Int16));
PresentationFramework (117)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (2)
538typeof(Byte), typeof(Int16), 545typeof(Int32), typeof(Int64), typeof(Byte), typeof(Int16),
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (29)
32public const Int16 BooleanConverter = 46; 33public const Int16 DependencyPropertyConverter = 137; 34public const Int16 EnumConverter = 195; 35public const Int16 StringConverter = 615; 37public const Int16 XamlBrushSerializer = 744; 38public const Int16 XamlInt32CollectionSerializer = 745; 39public const Int16 XamlPathDataSerializer = 746; 40public const Int16 XamlPoint3DCollectionSerializer = 747; 41public const Int16 XamlPointCollectionSerializer = 748; 42public const Int16 XamlVector3DCollectionSerializer = 752; 44public const Int16 MaxKnownType = 759; 45public const Int16 MaxKnownProperty = 268; 46public const Int16 MinKnownProperty = -268; 48public const Int16 VisualTreeKnownPropertyId = -174; 50public static Type GetAttachableTargetType(Int16 propertyId) 69public static Assembly GetKnownAssembly(Int16 assemblyId) 86public static Type GetKnownType(Int16 typeId) 88typeId = (Int16)(-typeId); 394case 302: t = () => typeof(Int16); break; 859internal static TypeConverter CreateKnownTypeConverter(Int16 converterId) 959public static bool GetKnownProperty(Int16 propertyId, out Int16 typeId, out string propertyName) 2033typeId = Int16.MinValue; 2040public static string GetKnownString(Int16 stringId) 2060public static Type GetTypeConverterForKnownProperty(Int16 propertyId) 2062Int16 declaringTypeId; 2074return GetKnownType((Int16)(-1 * (Int16)typeConverterType)); 2078public static bool? IsKnownPropertyAttachable(Int16 propertyId)
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (29)
36private const Int16 ExtensionIdMask = 0x0FFF; 37private const Int16 TypeExtensionValueMask = 0x4000; 38private const Int16 StaticExtensionValueMask = 0x2000; 969Int16 stringId = _binaryReader.ReadInt16(); 990Int16 keyStringId = _binaryReader.ReadInt16(); 1009Int16 typeId = _binaryReader.ReadInt16(); 1109Int16 typeId = _binaryReader.ReadInt16(); 1143Int16 typeId = _binaryReader.ReadInt16(); 1319Int16 typeId = _binaryReader.ReadInt16(); 1493private XamlMember GetProperty(Int16 propertyId, XamlType parentType) 1499private XamlMember GetProperty(Int16 propertyId, bool isAttached) 1649Int16 extensionId = _binaryReader.ReadInt16(); 1650Int16 valueId = _binaryReader.ReadInt16(); 1654Int16 extensionTypeId = (Int16)(extensionId & ExtensionIdMask); 1899Int16 resourceId = _binaryReader.ReadInt16(); 2043private string Logic_GetFullyQualifiedNameForMember(Int16 propertyId) 2203Int16 assemblyId = _binaryReader.ReadInt16(); 2209Int16 assemblyId = _binaryReader.ReadInt16(); 2218Int16 typeId = _binaryReader.ReadInt16(); 2219Int16 assemblyId = _binaryReader.ReadInt16(); 2230Int16 typeId = _binaryReader.ReadInt16(); 2231Int16 assemblyId = _binaryReader.ReadInt16(); 2233Int16 serializerId = _binaryReader.ReadInt16(); // currently not used. (found through reflection) 2244Int16 declaringTypeId = _binaryReader.ReadInt16(); 2254Int16 id = _binaryReader.ReadInt16(); 2262Int16 propertyId = _binaryReader.ReadInt16(); 2535Int16 serializerId, 2622Int16 propId = (short)(bytes[0] | (bytes[1] << 8));
src\Framework\System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (30)
105internal const Int16 StaticExtensionTypeId = 602; 106internal const Int16 StaticResourceTypeId = 603; 107internal const Int16 DynamicResourceTypeId = 189; 108internal const Int16 TemplateBindingTypeId = 634; 109internal const Int16 TypeExtensionTypeId = 691; 128internal Assembly GetAssembly(Int16 assemblyId) 140internal String GetAssemblyName(Int16 assemblyId) 152internal Type GetClrType(Int16 typeId) 169internal XamlType GetXamlType(Int16 typeId) 186internal DependencyProperty GetDependencyProperty(Int16 propertyId) 199internal XamlMember GetProperty(Int16 propertyId, XamlType parentType) 238internal XamlMember GetProperty(Int16 propertyId, bool isAttached) 283internal XamlType GetPropertyDeclaringType(Int16 propertyId) 301internal String GetPropertyName(Int16 propertyId, bool fullName) 319internal string GetString(Int16 stringId) 342internal void AddAssembly(Int16 assemblyId, string assemblyName) 369internal void AddXamlType(Int16 typeId, Int16 assemblyId, string typeName, TypeInfoFlags flags) 397internal void AddProperty(Int16 propertyId, Int16 declaringTypeId, string propertyName) 424internal void AddString(Int16 stringId, string value) 561private XamlType ResolveBamlType(BamlType bamlType, Int16 typeId) 581private bool TryGetBamlAssembly(Int16 assemblyId, out BamlAssembly bamlAssembly) 603private bool TryGetBamlType(Int16 typeId, out BamlType bamlType, out XamlType xamlType) 634private bool TryGetBamlProperty(Int16 propertyId, out BamlProperty bamlProperty, out XamlMember xamlMember) 655Int16 typeId; 753public BamlType(Int16 assemblyId, string name) 765public Int16 AssemblyId; 775public BamlProperty(Int16 declaringTypeId, string name) 787public readonly Int16 DeclaringTypeId;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5530typeof(System.Int16),
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (12)
15public const Int16 BooleanConverter = 46; 16public const Int16 DependencyPropertyConverter = 137; 17public const Int16 EnumConverter = 195; 19public const Int16 XamlBrushSerializer = 744; 20public const Int16 XamlInt32CollectionSerializer = 745; 21public const Int16 XamlPathDataSerializer = 746; 22public const Int16 XamlPoint3DCollectionSerializer = 747; 23public const Int16 XamlPointCollectionSerializer = 748; 24public const Int16 XamlVector3DCollectionSerializer = 752; 67internal string GetKnownBamlString(Int16 stringId) 86internal Baml6Assembly GetKnownBamlAssembly(Int16 assemblyId) 103internal Baml6Assembly CreateKnownBamlAssembly(Int16 assemblyId)
src\Framework\System\Windows\Markup\BamlMapTable.cs (3)
188private static Int16 GetKnownStringIdFromName(string stringValue) 1450out Int16 stringId) 1476internal Int16 AddStringInfoMap(
src\Framework\System\Windows\Markup\BamlRecords.cs (8)
1841internal Int16 ValueId 1875Int16 _valueId; 1934internal Int16 NameId 1973Int16 _nameId; 2028internal Int16 NameId 2057Int16 _nameId; 4104internal Int16 ValueId 4113Int16 _valueId;
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5846case KnownElements.Int16: t = typeof(System.Int16); break;
src\Framework\System\Windows\Markup\XamlFigureLengthSerializer.cs (1)
115writer.Write((Int16)intAmount);
src\Framework\System\Windows\Markup\XamlGridLengthSerializer.cs (1)
116writer.Write((Int16)intAmount);
System (17)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
1234else if (e.Value is Int16) { 1235Output.Write(((Int16)e.Value).ToString(CultureInfo.InvariantCulture));
compmod\system\codedom\compiler\CodeGenerator.cs (2)
1511else if (e.Value is Int16) { 1512Output.Write(((Int16)e.Value).ToString(CultureInfo.InvariantCulture));
compmod\system\componentmodel\Int16Converter.cs (4)
30return typeof(Int16); 45return Int16.Parse(value, culture); 53return Int16.Parse(value, NumberStyles.Integer, formatInfo); 61return ((Int16)value).ToString("G", formatInfo);
sys\system\Media\SoundPlayer.cs (9)
624Int16 wFormatTag = -1; 661Int16 cbSize = BytesToInt16(data[position+8 + sizeOfWAVEFORMATEX - 1], 687private static Int16 BytesToInt16(byte ch0, byte ch1) { 691return (Int16) res; 771internal System.Int16 wFormatTag; 772internal System.Int16 nChannels; 775internal System.Int16 nBlockAlign; 776internal System.Int16 wBitsPerSample; 777internal System.Int16 cbSize;
System.Activities (5)
System\Activities\Debugger\DebugInfo.cs (1)
343else if (t == typeof(Int16))
System\Activities\Debugger\State.cs (4)
200if ((input.StartLine > Int16.MaxValue) || (input.EndLine > Int16.MaxValue)) 207if ((input.StartColumn > Int16.MaxValue) || (input.EndColumn > Int16.MaxValue))
System.AddIn (1)
System\Addin\MiniReflection\MiniParameterInfo.cs (1)
87return new TypeInfo(typeof(Int16));
System.AddIn.Contract (5)
System\Addin\Contract\RemoteArgument.cs (5)
505public RemoteArgument(System.Int16 value) 513public RemoteArgument(System.Int16 value, bool isByRef) 1081public System.Int16 Int16Value 1089return default(System.Int16); 1095return (System.Int16)this._value;
System.Core (4)
Microsoft\Scripting\Ast\ParameterExpression.cs (1)
56case TypeCode.Int16: return new PrimitiveParameterExpression<Int16>(name);
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (3)
1215if (val.Reference == IntPtr.Zero) return new Int16[0]; 1216Int16[] arInt16 = new Int16[val.Count];
System.Data (282)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
35Int16 GetInt16( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedGettersV3.cs (1)
49Int16 GetInt16( SmiEventSink sink, int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (1)
30void SetInt16( int ordinal, Int16 value );
fx\src\data\Microsoft\SqlServer\Server\ITypedSettersV3.cs (1)
58void SetInt16( SmiEventSink sink, int ordinal, Int16 value );
fx\src\data\Microsoft\SqlServer\Server\MemoryRecordBuffer.cs (2)
75public override Int16 GetInt16(SmiEventSink sink, int ordinal) { 172public override void SetInt16(SmiEventSink sink, int ordinal, Int16 value) {
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
101ht.Add( typeof( System.Int16 ), ExtendedClrTypeCode.Int16 ); 318if (value.GetType() == typeof( Int16 ))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (2)
162public virtual Int16 GetInt16( int ordinal ) { 505public virtual void SetInt16( int ordinal, Int16 value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (2)
220public virtual Int16 GetInt16( int ordinal ) { 563public virtual void SetInt16( int ordinal, Int16 value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiTypedGetterSetter.cs (2)
121public virtual Int16 GetInt16(SmiEventSink sink, int ordinal) { 321public virtual void SetInt16(SmiEventSink sink, int ordinal, Int16 value) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
168public virtual Int16 GetInt16(int ordinal) { 433public virtual void SetInt16(int ordinal, System.Int16 value) {
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (2)
47[FieldOffset(0)] internal Int16 _int16; 162internal Int16 Int16 {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
259internal static Int16 GetInt16( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) { 268return (Int16) obj; 529Int16 temp = GetInt16_Unchecked( sink, getters, ordinal ); 1434internal static void SetInt16( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, Int16 value ) { 1603case ExtendedClrTypeCode.Int16: SetInt16_Unchecked( sink, setters, ordinal, (Int16) value ); break; 3114private static Int16 GetInt16_Unchecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal ) { 3117Int16 result = getters.GetInt16( sink, ordinal ); 3357private static void SetInt16_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, Int16 value ) {
fx\src\data\System\Data\CodeGen\datacache.cs (1)
853col.DataType == typeof(Int16) || col.DataType == typeof(UInt16) ||
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
33typeof(Int16),
fx\src\data\System\Data\Common\BigIntegerStorage.cs (4)
65else if (value.GetType() == typeof(Int16)) { return (BigInteger)(Int16)value; } 77else if (type == typeof(Int16)) { return checked((Int16)value); }
fx\src\data\System\Data\Common\DataRecordInternal.cs (2)
245public override Int16 GetInt16(int i) { 246return((Int16) _values[i]);
fx\src\data\System\Data\Common\DataStorage.cs (1)
78typeof(Int16),
fx\src\data\System\Data\Common\DbDataReader.cs (1)
132abstract public Int16 GetInt16(int ordinal);
fx\src\data\System\Data\Common\dbdatarecord.cs (1)
65public abstract Int16 GetInt16(int i);
fx\src\data\System\Data\Common\Int16Storage.cs (22)
18private const Int16 defaultValue = 0; 20private Int16[] values; 23: base(column, typeof(Int16), defaultValue, StorageType.Int16) { 54Int16 mean; 55checked {mean = (Int16)(meanSum / meanCount);} 98Int16 min = Int16.MaxValue; 112Int16 max = Int16.MinValue; 142throw ExprException.Overflow(typeof(Int16)); 148Int16 valueNo1 = values[recordNo1]; 149Int16 valueNo2 = values[recordNo2]; 169Int16 valueNo1 = values[recordNo]; 173return valueNo1.CompareTo((Int16)value); 195Int16 value = values[record]; 215Int16[] newValues = new Int16[capacity]; 228return XmlConvert.ToString((Int16) value); 232return new Int16[recordCount]; 236Int16[] typedStore = (Int16[]) store; 242values = (Int16[]) store;
fx\src\data\System\Data\Common\ObjectStorage.cs (2)
223else if (valType == typeof(Int16)){ 224values[recordNo] = BitConverter.GetBytes((Int16)value);
fx\src\data\System\Data\Common\SQLConvert.cs (9)
47return (Int16)value; 72return (Int16) value; 100return (Int16)value; 140return (Int16)value; 188return (Int16)value; 230return (Int16)value; 274return (Int16)value; 504return ((IConvertible)(Int16)value).ToString(formatProvider); 751return XmlConvert.ToString((Int16) value);
fx\src\data\System\Data\Common\UnsafeNativeMethods.cs (53)
70/*SQLSMALLINT*/Int16 ParamDirection, 72/*SQLSMALLINT*/Int16 SQLType, 93/*SQLUSMALLINT*/Int16 ColumnNumber, 94/*SQLUSMALLINT*/Int16 FieldIdentifier, 96/*SQLSMALLINT*/Int16 BufferLength, 97/*SQLSMALLINT* */out Int16 StringLength, 122/*SQLSMALLINT*/Int16 NameLen1, 125/*SQLSMALLINT*/Int16 NameLen2, 128/*SQLSMALLINT*/Int16 NameLen3, 131/*SQLSMALLINT*/Int16 NameLen4); 147/*SQLSMALLINT*/Int16 cbConnectionstring, 149/*SQLSMALLINT*/Int16 cbConnectionstringoutMax, 150/*SQLSMALLINT* */out Int16 cbConnectionstringout, 151/*SQLUSMALLINT*/Int16 fDriverCompletion); 159/*SQLSMALLINT*/Int16 CompletionType); 215/*SQLUSMALLINT*/Int16 RecNumber, 226/*SQLSMALLINT*/Int16 RecNumber, 230/*SQLSMALLINT*/Int16 BufferLength, 231/*SQLSMALLINT* */out Int16 TextLength); 238/*SQLSMALLINT*/ Int16 RecNumber, 239/*SQLSMALLINT*/ Int16 DiagIdentifier, 242/*SQLSMALLINT*/ Int16 BufferLength, 243/*SQLSMALLINT* */ out Int16 StringLength); 250/*SQLUSMALLINT* */out Int16 pfExists); 258/*SQLSMALLINT*/Int16 cbInfoValueMax, 259/*SQLSMALLINT* */out Int16 pcbInfoValue); 267/*SQLSMALLINT*/Int16 cbInfoValueMax, 283/*SQLSMALLINT*/Int16 fSqlType); 294/*SQLSMALLINT* */out Int16 ColumnCount); 310/*SQLSMALLINT*/Int16 NameLen1, 313/*SQLSMALLINT*/Int16 NameLen2, 316/*SQLSMALLINT*/Int16 NameLen3); 323/*SQLSMALLINT*/Int16 NameLen1, 325/*SQLSMALLINT*/Int16 NameLen2, 327/*SQLSMALLINT*/Int16 NameLen3, 329/*SQLSMALLINT*/Int16 NameLen4); 336/*SQLSMALLINT*/Int16 NameLen1, 338/*SQLSMALLINT*/Int16 NameLen2, 340/*SQLSMALLINT*/Int16 NameLen3); 385/*SQLSMALLINT*/Int16 ColumnNumber, 394/*SQLSMALLINT*/Int16 ColumnNumber, 423/*SQLSMALLINT*/Int16 NameLen1, 426/*SQLSMALLINT*/Int16 NameLen2, 429/*SQLSMALLINT*/Int16 NameLen3, 439/*SQLSMALLINT*/Int16 NameLen1, 442/*SQLSMALLINT*/Int16 NameLen2, 445/*SQLSMALLINT*/Int16 NameLen3, 446/*SQLUSMALLINT*/Int16 Unique, 447/*SQLUSMALLINT*/Int16 Reserved); 455/*SQLSMALLINT*/Int16 NameLen1, 458/*SQLSMALLINT*/Int16 NameLen2, 461/*SQLSMALLINT*/Int16 NameLen3, 464/*SQLSMALLINT*/Int16 NameLen4);
fx\src\data\System\Data\DataColumn.cs (1)
1562return ((dataType == typeof(Int32)) || (dataType == typeof(Int64)) || (dataType == typeof(Int16)) || (dataType == typeof(Decimal)) || (dataType == typeof(System.Numerics.BigInteger)) ||
fx\src\data\System\Data\DataTableReader.cs (4)
486override public Int16 GetInt16 (int ordinal) { 490return (Int16) currentDataRow[ordinal]; 611DataColumn NumericPrecision = new DataColumn(SchemaTableColumn.NumericPrecision, typeof(System.Int16)); 612DataColumn NumericScale = new DataColumn(SchemaTableColumn.NumericScale, typeof(System.Int16));
fx\src\data\System\Data\Filter\UnaryNode.cs (1)
71value = -(Int16) vl;
fx\src\data\System\Data\IDataRecord.cs (1)
46Int16 GetInt16(int i);
fx\src\data\System\Data\Odbc\Odbc32.cs (6)
267internal const Int16 SQL_COMMIT = 0; //Commit 268internal const Int16 SQL_ROLLBACK = 1; //Abort 574internal const Int16 SQL_ALL_TYPES = 0; 739Int16 iRec = 0; 740Int16 cchActual = 0; 795static private readonly TypeMap _SmallInt = new TypeMap(OdbcType.SmallInt, DbType.Int16, typeof(Int16), ODBC32.SQL_TYPE.SMALLINT, ODBC32.SQL_C.SSHORT, ODBC32.SQL_C.SSHORT, 2, 5, true);
fx\src\data\System\Data\Odbc\OdbcCommand.cs (4)
649Int16 cColsAffected; 715(Int16)methodArguments[3], //IndexTrpe 716(Int16)methodArguments[4]); //Accuracy 720retcode = stmt.GetTypeInfo((Int16)methodArguments[0]); //SQL Type
fx\src\data\System\Data\Odbc\OdbcConnection.cs (4)
409internal ODBC32.RetCode GetInfoInt16Unhandled(ODBC32.SQL_INFO info, out Int16 resultValue) { 436Int16 cbActual = 0; 677Int16 fExists; 678Debug.Assert ((Int16) odbcFunction != 0,"SQL_API_ALL_FUNCTIONS is not supported");
fx\src\data\System\Data\Odbc\OdbcConnectionHandle.cs (1)
229internal ODBC32.RetCode GetFunctions(ODBC32.SQL_API fFunction, out Int16 fExists) {
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (13)
158Int16 cColsAffected; 187internal ODBC32.RetCode FieldCountNoThrow(out Int16 cColsAffected) { 205cColsAffected = (Int16)i; 618override public Int16 GetInt16(int i) { 619return (Int16)internalGetInt16(i); 1344Int16 cchNameLength = 0; 1390Int16 cchNameLength = 0; 1655Int16 cCols; 1682Int16 cColsAffected; 1931columns.Add(new DataColumn("NumericPrecision", typeof(System.Int16))); // UInt16 1932columns.Add(new DataColumn("NumericScale", typeof(System.Int16))); 2006row[numericPrecision] = (Int16) metadata[i].precision; 2007row[numericScale] = (Int16) metadata[i].scale;
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (27)
365Int16 searchableValue = Convert.ToInt16(getTypeInfoValues[indexSEARCHABLE], null); 368case (Int16)ODBC32.SQL_SEARCHABLE.UNSEARCHABLE: 373case (Int16)ODBC32.SQL_SEARCHABLE.LIKE_ONLY: 378case (Int16)ODBC32.SQL_SEARCHABLE.ALL_EXCEPT_LIKE: 383case (Int16)ODBC32.SQL_SEARCHABLE.SEARCHABLE: 457private DataTable DataTableFromDataReaderProcedures(IDataReader reader, string tableName,Int16 procedureType) { 558Int16 int16Value; 625case (Int16)ODBC32.SQL_GROUP_BY.NOT_SUPPORTED: 629case (Int16)ODBC32.SQL_GROUP_BY.GROUP_BY_EQUALS_SELECT: 633case (Int16)ODBC32.SQL_GROUP_BY.GROUP_BY_CONTAINS_SELECT: 637case (Int16)ODBC32.SQL_GROUP_BY.NO_RELATION: 658case (Int16)ODBC32.SQL_IDENTIFIER_CASE.SENSITIVE: 662case (Int16)ODBC32.SQL_IDENTIFIER_CASE.UPPER: 663case (Int16)ODBC32.SQL_IDENTIFIER_CASE.LOWER: 664case (Int16)ODBC32.SQL_IDENTIFIER_CASE.MIXED: 722case (Int16)ODBC32.SQL_IDENTIFIER_CASE.SENSITIVE: 726case (Int16)ODBC32.SQL_IDENTIFIER_CASE.UPPER: 727case (Int16)ODBC32.SQL_IDENTIFIER_CASE.LOWER: 728case (Int16)ODBC32.SQL_IDENTIFIER_CASE.MIXED: 804allRestrictions[3] = (Int16)ODBC32.SQL_INDEX.ALL; 805allRestrictions[4] = (Int16)ODBC32.SQL_STATISTICS_RESERVED.ENSURE; 890Int16 procedureType; 893procedureType = (Int16)ODBC32.SQL_PROCEDURETYPE.UNKNOWN; 897procedureType = (Int16)ODBC32.SQL_PROCEDURETYPE.PROCEDURE; 901procedureType = (Int16)ODBC32.SQL_PROCEDURETYPE.FUNCTION; 1005Int16 rowIndexType) { 1007if (rowIndexType == (Int16)ODBC32.SQL_STATISTICSTYPE.TABLE_STAT) {
fx\src\data\System\Data\Odbc\OdbcStatementHandle.cs (5)
182internal ODBC32.RetCode GetTypeInfo(Int16 fSqlType) { 275Int16 unique, 276Int16 accuracy) { 295(Int16) ODBC32.SQL_INDEX.UNIQUE, 296(Int16) ODBC32.SQL_STATISTICS_RESERVED.ENSURE);
fx\src\data\System\Data\Odbc\OdbcUtils.cs (1)
228WriteInt16(offset, (Int16)value);
fx\src\data\System\Data\OleDb\ColumnBinding.cs (16)
414Value_I2((Int16) value); 453if (value is Int16) { // MDAC 60430 454Value_I1(Convert.ToSByte((Int16)value, CultureInfo.InvariantCulture)); 559Int16 value = RowBinding.ReadInt16(ValueOffset); 865internal Int16 Value_I2() { 870private void Value_I2(Int16 value) { 1025RowBinding.WriteInt16(ValueOffset, unchecked((Int16) value)); 1223throw CheckTypeValueStatusValue(typeof(Int16)); 1253throw CheckTypeValueStatusValue(typeof(Int16)); 1271throw CheckTypeValueStatusValue(typeof(Int16)); 1276internal Int16 ValueInt16() { 1277Int16 value; 1285value = (Int16) Value_I1(); 1290value = (Int16)(SByte) variant; 1293value = (Int16) variant; 1301throw CheckTypeValueStatusValue(typeof(Int16));
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (2)
171static private readonly NativeDBType D_TinyInt = new NativeDBType( 3, 1, true, false, OleDbType.TinyInt, NativeDBType.I1, S_I1, typeof(System.Int16), NativeDBType.I1, DbType.SByte ); // 13 - integer1 // MDAC 59492 172static private readonly NativeDBType D_SmallInt = new NativeDBType( 5, 2, true, false, OleDbType.SmallInt, NativeDBType.I2, S_I2, typeof(System.Int16), NativeDBType.I2, DbType.Int16 ); // 14 - integer2
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (3)
309DataColumn precision = new DataColumn("NumericPrecision", typeof(System.Int16)); 310DataColumn scale = new DataColumn("NumericScale", typeof(System.Int16)); 939override public Int16 GetInt16(int ordinal) {
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (1)
579Int16 procedureTypeValue;
fx\src\data\System\Data\OleDb\OleDbStruct.cs (4)
113internal Int16 wType; 164internal Int16 wType; 356internal Int16 wType = 0; 425internal Int16 vtType;
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (1)
145case VarEnum.VT_I2: return typeof(System.Int16);
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (1)
195internal Int16 ReadInt16(int offset) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (3)
706public Int16 Adjust(Int16 value) { 1056case TypeCode.Int16: value = this.Adjust((Int16)value); break;
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (7)
82internal Int16 offset; 92[FieldOffset(0)] internal Int16 _int16; 242internal Int16 Int16 { 249return (Int16)this.Value; // anything else we haven't thought of goes through boxing. 767case SqlBuffer.StorageType.Int16: return typeof(Int16); 913_value._dateTimeOffsetInfo.offset = (Int16)(bytes[length - 2] + (bytes[length - 1] << 8)); // 2 bytes for offset (Int16) 925_value._dateTimeOffsetInfo.offset = (Int16)dateTimeOffset.Offset.TotalMinutes;
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (7)
116Int16 keyPathLength = BitConverter.ToInt16(encryptedColumnEncryptionKey, currentIndex); 117currentIndex += sizeof(Int16); 121currentIndex += sizeof(Int16); 210byte[] keyPathLength = BitConverter.GetBytes((Int16)masterKeyPathBytes.Length); 214byte[] cipherTextLength = BitConverter.GetBytes((Int16)cipherText.Length); 353if (masterKeyPath.Length >= Int16.MaxValue) 355throw SQL.LargeCertificatePathLength(masterKeyPath.Length, Int16.MaxValue, isSystemOp);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (2)
190byte[] keyPathLength = BitConverter.GetBytes((Int16)masterKeyPathBytes.Length); 194byte[] cipherTextLength = BitConverter.GetBytes((Int16)cipherText.Length);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (2)
196byte[] keyPathLength = BitConverter.GetBytes((Int16)masterKeyPathBytes.Length); 200byte[] cipherTextLength = BitConverter.GetBytes((Int16)cipherText.Length);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (3)
433DataColumn Precision = new DataColumn(SchemaTableColumn.NumericPrecision, typeof(System.Int16)); 434DataColumn Scale = new DataColumn(SchemaTableColumn.NumericScale, typeof(System.Int16)); 2269override public Int16 GetInt16(int i) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (3)
245public override Int16 GetInt16(int ordinal) { 473DataColumn Precision = new DataColumn(SchemaTableColumn.NumericPrecision, typeof(System.Int16)); 474DataColumn Scale = new DataColumn(SchemaTableColumn.NumericScale, typeof(System.Int16));
fx\src\data\System\Data\SqlClient\SqlEnums.cs (3)
512else if (comVal is Int16) 513sqlVal = new SqlInt16((Int16)comVal); 746(5, 255, 2, true, false, false, TdsEnums.SQLINT2, TdsEnums.SQLINTN, MetaTypeName.SMALLINT, typeof(System.Int16), typeof(SqlInt16), SqlDbType.SmallInt, DbType.Int16, 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (9)
5080value.Int16 = (Int16)longValue; 5870WriteShort((Int16)value, stateObj); 6019WriteShort((Int16)value, stateObj); 6322Int16 offset = (Int16)value.Offset.TotalMinutes; 6331Int16 offset = (Int16)value.Offset.TotalMinutes; 10572WriteShort((Int16)value, stateObj); 10795return SerializeLong((Int16)value, stateObj);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
1352value = (Int16)((buffer[offset + 1] << 8) + buffer[offset]);
fx\src\data\System\Data\SqlClient\TdsRecordBufferSetter.cs (1)
131public override void SetInt16(SmiEventSink sink, int ordinal, Int16 value) {
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (3)
376internal void SetInt16(Int16 value) { 587Int16 offset = (Int16)value.Offset.TotalMinutes;
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (1)
431private const int MaxWin32PathLength = Int16.MaxValue - 1;
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (14)
119return new SqlInt16(Int16.Parse(s, (IFormatProvider)null)); 193if ((x.m_value == Int16.MinValue) && (y.m_value == -1)) 210if ((x.m_value == Int16.MinValue) && (y.m_value == -1)) 272if (value > (int)Int16.MaxValue || value < (int)Int16.MinValue) 287if (value > (long)Int16.MaxValue || value < (long)Int16.MinValue) 302if (value < (float)Int16.MinValue || value > (float)Int16.MaxValue) 317if (value < (double)Int16.MinValue || value > (double)Int16.MaxValue) 344return x.IsNull ? Null : new SqlInt16(Int16.Parse(x.Value, (IFormatProvider)null)); 620public static readonly SqlInt16 MinValue = new SqlInt16(Int16.MinValue); 624public static readonly SqlInt16 MaxValue = new SqlInt16(Int16.MaxValue);
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (1)
73Debug.Assert(path.Length < Int16.MaxValue);
fx\src\data\System\Data\XDRSchema.cs (1)
230new NameType("i2" , typeof(Int16) ), /* XDR */
fx\src\data\System\Data\xmlsaver.cs (1)
226if (type == typeof(Int16) || type == typeof(SqlInt16))
fx\src\data\System\Data\XMLSchema.cs (1)
1593new NameType("short" , typeof(Int16) ), /* XSD Apr */
System.Data.DataSetExtensions (3)
System\Data\DataRowComparer.cs (3)
75return DataRowComparer.CompareEquatableArray<Int16>((Int16[])a, (Int16[])b);
System.Data.Entity (26)
System\Data\Common\DataRecord.cs (2)
340public override Int16 GetInt16(int ordinal) 342return ((Int16)_values[ordinal]);
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (2)
154Int16 temp; 155if (!Int16.TryParse(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp))
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
65typeDefaultMap[PrimitiveTypeKind.Int16] = default(Int16);
System\Data\Metadata\Edm\EnumMember.cs (1)
51Debug.Assert(value is SByte || value is Byte || value is Int16 || value is Int32 || value is Int64, "Unsupported type of enum member value.");
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
217primitiveTypes[(int)PrimitiveTypeKind.Int16] = CreatePrimitiveType(typeof(Int16), PrimitiveTypeKind.Int16);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (1)
165InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Int16], PrimitiveTypeKind.Int16, EdmConstants.Int16, typeof(Int16));
System\Data\Metadata\Helper.cs (2)
519{ PrimitiveTypeKind.Int16, new long[] { Int16.MinValue, Int16.MaxValue } },
System\Data\Objects\DataClasses\StructuralObject.cs (8)
1024protected internal static Int16 SetValidValue(Int16 value, string propertyName) 1040protected internal static Int16 SetValidValue(Int16 value) 1058protected internal static Nullable<Int16> SetValidValue(Nullable<Int16> value, string propertyName) 1074protected internal static Nullable<Int16> SetValidValue(Nullable<Int16> value)
System\Data\Objects\ObjectStateEntryBaseUpdatableDataRecord.cs (3)
281override public Int16 GetInt16(int ordinal) 283return (Int16)GetValue(ordinal); 466public void SetInt16(int ordinal, Int16 value)
System\Data\Objects\ObjectStateEntryDbDataRecord.cs (2)
198override public Int16 GetInt16(int ordinal) 200return (Int16)GetValue(ordinal);
System\Data\Query\ResultAssembly\BridgeDataReader.cs (1)
717override public Int16 GetInt16(int ordinal) {
System\Data\Query\ResultAssembly\BridgeDataRecord.cs (2)
580override public Int16 GetInt16(int ordinal) { 581return (Int16)GetValue(ordinal);
System.Data.Linq (3)
SqlClient\Query\SqlMethodCallConverter.cs (2)
1235targetType = typeof(Int16); 2424targetType = typeof(Int16);
SqlClient\Reader\ObjectReaderCompiler.cs (1)
2349this.GenerateConstInt((Int16)value);
System.Data.Services (9)
System\Data\Services\Parsing\WebConvert.cs (4)
413else if (typeof(Int16) == targetType) 546else if (typeof(Int16) == targetType) 651else if (typeof(Int16) == valueType) 653result = XmlConvert.ToString((Int16)value);
System\Data\Services\Serializers\JsonDeserializer.cs (1)
114if (propertyType == typeof(Int16))
System\Data\Services\Serializers\JsonSerializer.cs (2)
353else if (typeof(Int16) == value.GetType()) 355this.writer.WriteValue((Int16)value);
System\Data\Services\WebUtil.cs (2)
82new KeyValuePair<Type, string>(typeof(Int16), XmlConstants.EdmInt16TypeName), 83new KeyValuePair<Type, string>(typeof(Int16?), XmlConstants.EdmInt16TypeName),
System.Data.Services.Client (5)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (2)
651else if (typeof(Int16) == valueType) 653result = XmlConvert.ToString((Int16)value);
System\Data\Services\Client\ClientConvert.cs (3)
327return XmlConvert.ToString((Int16)propertyValue); 473types[(int)StorageType.Int16] = typeof(Int16); 506named.Add(XmlConstants.EdmInt16TypeName, typeof(Int16));
System.Data.SqlXml (1)
System\Xml\Xsl\XsltOld\Processor.cs (1)
214parameter is Int16 || parameter is UInt16 ||
System.Drawing (11)
commonui\System\Drawing\Advanced\EncoderParameter.cs (1)
144parameterValue = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Int16)));
commonui\System\Drawing\Bitmap.cs (2)
423if(status == 2 /* invalid parameter*/ && (this.Width >= Int16.MaxValue || this.Height >= Int16.MaxValue)) {
misc\GDI\UnsafeNativeMethods.cs (8)
381lpRect.top = Math.Min( Int16.MaxValue, lpRect.top ); 382lpRect.left = Math.Min( Int16.MaxValue, lpRect.left ); 383lpRect.right = Math.Min( Int16.MaxValue, lpRect.right ); 384lpRect.bottom = Math.Min( Int16.MaxValue, lpRect.bottom ); 420lpRect.top = Math.Min(Int16.MaxValue, lpRect.top); 421lpRect.left = Math.Min(Int16.MaxValue, lpRect.left); 422lpRect.right = Math.Min(Int16.MaxValue, lpRect.right); 423lpRect.bottom = Math.Min(Int16.MaxValue, lpRect.bottom);
System.Management (22)
Instrumentation\SchemaMapping.cs (2)
400 else if(t2 == typeof(Int16) || t2 == typeof(UInt16) || t2 == typeof(Char)) 520 else if(t2 == typeof(Int16))
property.cs (20)
310 ((SByte[])val) [i] = (SByte)((Int16)(wmiValueArray.GetValue(i))); 324 ((Char[])val) [i] = (Char)((Int16)(wmiValueArray.GetValue(i))); 344 val = (SByte)((Int16)wmiValue); 364 val = (Char)((Int16)wmiValue); 401 wmiValue = new Int16 [length]; 403 ((Int16[])(wmiValue))[i] = (Int16)Convert.ToSByte(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.SByte))); 418 if (val is Int16[]) 422 wmiValue = new Int16 [length]; 424 ((Int16[])(wmiValue))[i] = Convert.ToInt16(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Int16))); 486 wmiValue = new Int16 [length]; 488 ((Int16[])(wmiValue))[i] = (Int16)Convert.ToChar(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Char))); 539 wmiValue = (Int16)Convert.ToSByte(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Int16))); 547 wmiValue = Convert.ToInt16(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Int16))); 579 wmiValue = (Int16)Convert.ToChar(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Char))); 673 else if (elementType == typeof(System.Int16)) 795 else if (valueType == typeof(System.Int16))
System.Messaging (1)
System\Messaging\ActiveXMessageFormatter.cs (1)
337else if (obj is Int16)
System.Numerics (3)
System\Numerics\BigInteger.cs (2)
1142public static implicit operator BigInteger(Int16 value) 1202public static explicit operator Int16(BigInteger value)
System\Numerics\Complex.cs (1)
214public static implicit operator Complex(Int16 value) {
System.Runtime.Remoting (1)
metadata\sudscommon.cs (1)
82internal static Type typeofInt16 = typeof(Int16);
System.Runtime.Serialization (32)
System\Runtime\Serialization\DataContract.cs (1)
744type = typeof(Int16);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
334public override void WriteArray(string prefix, string localName, string namespaceUri, Int16[] array, int offset, int count)
System\Xml\ArrayHelper.cs (6)
131class Int16ArrayHelperWithString : ArrayHelper<string, Int16> 135protected override int ReadArray(XmlDictionaryReader reader, string localName, string namespaceUri, Int16[] array, int offset, int count) 140protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, Int16[] array, int offset, int count) 146class Int16ArrayHelperWithDictionaryString : ArrayHelper<XmlDictionaryString, Int16> 150protected override int ReadArray(XmlDictionaryReader reader, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count) 155protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count)
System\Xml\XmlBaseReader.cs (2)
1917public override Int16[] ReadInt16Array(string localName, string namespaceUri) 1922public override Int16[] ReadInt16Array(XmlDictionaryString localName, XmlDictionaryString namespaceUri)
System\Xml\XmlBinaryReader.cs (5)
1179type = typeof(Int16); 1283unsafe int ReadArray(Int16[] array, int offset, int count) 1287fixed (Int16* items = &array[offset]) 1295public override int ReadArray(string localName, string namespaceUri, Int16[] array, int offset, int count) 1302public override int ReadArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count)
System\Xml\XmlBinaryWriter.cs (4)
1325unsafe public override void WriteArray(string prefix, string localName, string namespaceUri, Int16[] array, int offset, int count) 1334fixed (Int16* items = &array[offset]) 1345unsafe public override void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count) 1354fixed (Int16* items = &array[offset])
System\Xml\XmlBufferReader.cs (2)
368return (Int16)ReadUInt16(); 1052return (Int16)(buffer[offset] + (buffer[offset + 1] << 8));
System\Xml\XmlDictionaryReader.cs (7)
1092public virtual Int16[] ReadInt16Array(string localName, string namespaceUri) 1097public virtual Int16[] ReadInt16Array(XmlDictionaryString localName, XmlDictionaryString namespaceUri) 1102public virtual int ReadArray(string localName, string namespaceUri, Int16[] array, int offset, int count) 1109if (i < Int16.MinValue || i > Int16.MaxValue) 1111array[offset + actual] = (Int16)i; 1117public virtual int ReadArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count)
System\Xml\XmlDictionaryWriter.cs (4)
798else if (type == typeof(Int16)) 827else if (type == typeof(Int16)) 973public virtual void WriteArray(string prefix, string localName, string namespaceUri, Int16[] array, int offset, int count) 984public virtual void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count)
System.ServiceModel (15)
System\ServiceModel\Channels\PnrpPeerResolver.cs (6)
911static extern int WSAStartup(Int16 wVersionRequested, ref WsaData lpWSAData); 931const Int16 RequiredWinsockVersion = 0x0202; 1311public Int16 wVersion; 1312public Int16 wHighVersion; 1318public Int16 iMaxSockets; 1319public Int16 iMaxUdpDg;
System\ServiceModel\ComIntegration\DispatchProxy.cs (8)
373if (ret.GetType() == typeof(Int16)) 374ret = (Int32)((Int16)ret); 380if (ret.GetType() == typeof(Int16)) 381ret = (Int64)((Int16)ret); 457if (objects[i].GetType() == typeof(Int16)) 458arr.SetValue((Int32)((Int16)objects[i]), i); 469if (objects[i].GetType() == typeof(Int16)) 470arr.SetValue((Int64)((Int16)objects[i]), i);
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (1)
333else if (obj is Int16)
System.ServiceModel.Internals (4)
System\Runtime\TypeHelper.cs (4)
324result = (T)(object)(Int16)sbyteSource; 350result = (T)(object)(Int16)byteSource; 381Int16 int16Source = (Int16)source;
System.ServiceModel.Web (3)
System\ServiceModel\Dispatcher\QueryStringConverter.cs (3)
32this.defaultSupportedQueryStringTypes.Add(typeof(Int16), null); 82return parameter == null ? default(Int16) : XmlConvert.ToInt16(parameter); 181return XmlConvert.ToString((Int16) parameter);
System.Web (7)
Profile\HttpProfileBase.cs (1)
589return typeof(System.Int16);
State\SessionStateItemCollection.cs (1)
177t=typeof(Int16);
UI\ObjectConverter.cs (4)
68else if (typeof(Int16).IsAssignableFrom(toType)) { 69 return Convert.ToInt16((Int16)value, CultureInfo.InvariantCulture); 119else if (typeof(Int16).IsAssignableFrom(fromType)) { 120return ((Int16)value).ToString(formatString, CultureInfo.InvariantCulture);
Util\altserialization.cs (1)
96else if (value is Int16) {
System.Web.DataVisualization (3)
Common\DataManager\DataSeries.cs (1)
931 type == typeof(Int16) ||
Common\Utilities\XmlSerializer.cs (2)
618internal Int16 ReadHashID(BinaryReader reader) 2959 Int16 typeHash = 0;
System.Web.DynamicData (2)
DynamicData\DataSourceUtil.cs (1)
26typeNameToTypeCode[typeof(Int16)] = TypeCode.Int16;
DynamicData\FieldTemplateFactory.cs (1)
77_typesFallBacks[typeof(Int16)] = typeof(int);
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
343return typeof(Int16); 409return typeof(Int16);
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
605typeof(Int16),
System.Web.Mobile (3)
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (3)
242Color c = Color.FromArgb((Int16)(ct.R * 0.1 + cw.R * 0.9), 243(Int16)(ct.G * 0.1 + cw.G * 0.9), 244(Int16)(ct.B * 0.1 + cw.B * 0.9));
System.Windows.Forms (20)
misc\GDI\UnsafeNativeMethods.cs (8)
381lpRect.top = Math.Min( Int16.MaxValue, lpRect.top ); 382lpRect.left = Math.Min( Int16.MaxValue, lpRect.left ); 383lpRect.right = Math.Min( Int16.MaxValue, lpRect.right ); 384lpRect.bottom = Math.Min( Int16.MaxValue, lpRect.bottom ); 420lpRect.top = Math.Min(Int16.MaxValue, lpRect.top); 421lpRect.left = Math.Min(Int16.MaxValue, lpRect.left); 422lpRect.right = Math.Min(Int16.MaxValue, lpRect.right); 423lpRect.bottom = Math.Min(Int16.MaxValue, lpRect.bottom);
winforms\Managed\System\WinForms\ComboBox.cs (2)
936Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, this.Font, new Size(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine); 946Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, this.Font, new Size(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
950return typeof(Int16);
winforms\Managed\System\WinForms\DataGridTable.cs (1)
1469else if (dataType.Equals(typeof(Int16)) ||
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
57Size textSize = TextRenderer.MeasureText(obj.ToString(), font, new Size(Int16.MaxValue, Int16.MaxValue), TextFormatFlags.SingleLine);
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
706if (dontHonorConstraint && (proposedConstraints.Width < Int16.MaxValue)) { 816if (dontHonorConstraint && (proposedConstraints.Height < Int16.MaxValue)) {
winforms\Managed\System\WinForms\NativeWindow.cs (2)
759if (cp.Caption != null && cp.Caption.Length > Int16.MaxValue) { 760cp.Caption = cp.Caption.Substring(0, Int16.MaxValue);
winforms\Managed\System\WinForms\TreeView.cs (2)
808if (value >= Int16.MaxValue) { 809throw new ArgumentOutOfRangeException("ItemHeight", SR.GetString(SR.InvalidHighBoundArgument, "ItemHeight", (value).ToString(CultureInfo.CurrentCulture), Int16.MaxValue.ToString(CultureInfo.CurrentCulture)));
System.Windows.Forms.DataVisualization (3)
Common\DataManager\DataSeries.cs (1)
931 type == typeof(Int16) ||
Common\Utilities\XmlSerializer.cs (2)
618internal Int16 ReadHashID(BinaryReader reader) 2959 Int16 typeHash = 0;
System.Workflow.ComponentModel (1)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
645obj.GetType() == typeof(System.Int16) || obj.GetType() == typeof(decimal) ||
System.Xml (19)
System\Xml\BinaryXml\XmlBinaryReader.cs (3)
2890map[(int)BinXmlToken.SQL_SMALLINT] = typeof(Int16); 3908Int16 GetInt16(int pos) { 3910return (Int16)(data[pos] | data[pos + 1] << 8);
System\Xml\Cache\XPathNodeHelper.cs (1)
167Debug.Assert(pageNode[0].PageInfo.PageNumber <= Int16.MaxValue);
System\Xml\Schema\FacetChecker.cs (2)
659internal virtual Exception CheckValueFacets(Int16 value, XmlSchemaDatatype datatype) { 892internal override Exception CheckValueFacets(Int16 value, XmlSchemaDatatype datatype) {
System\Xml\Schema\XmlValueConverter.cs (2)
838if (value < (int) Int16.MinValue || value > (int) Int16.MaxValue)
System\Xml\Serialization\PrimitiveXmlSerializers.cs (2)
45WriteElementStringRaw(@"short", @"", System.Xml.XmlConvert.ToString((System.Int16)((System.Int16)o)));
System\Xml\Serialization\XmlCodeExporter.cs (1)
230else if (type == typeof(Int16) ||
System\Xml\Serialization\XmlSerializationReader.cs (1)
718value = default(Nullable<Int16>);
System\Xml\XmlConvert.cs (5)
661public static string ToString(Int16 value) { 912public static Int16 ToInt16 (string s) { 913return Int16.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 917internal static Exception TryToInt16(string s, out Int16 result) { 918if (!Int16.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) {
System\Xml\XPath\Internal\ExtensionQuery.cs (2)
100if (value is Int16 ) return (double)(Int16)value;
WindowsBase (14)
Base\MS\Internal\IO\Packaging\CompoundFile\ContainerUtilities.cs (1)
306return Marshal.SizeOf(typeof(Int16));
Base\MS\Internal\IO\Zip\ZipIOBlockManager.cs (2)
563internal static int CopyBytes(Int16 value, byte[] buffer, int offset) 565Debug.Assert(checked(buffer.Length-offset) >= sizeof(Int16));
Base\System\IO\Packaging\CompoundFile\FormatVersion.cs (2)
473Int16 major; 474Int16 minor;
Base\System\IO\Packaging\CompoundFile\VersionPair.cs (6)
54internal VersionPair(Int16 major, Int16 minor) 85public Int16 Major 96public Int16 Minor 382private Int16 _major; // Major number 383private Int16 _minor; // Minor number
Base\System\Windows\Markup\TypeConverterHelper.cs (3)
181else if (typeof(Int16).IsAssignableFrom(type)) 265else if (type == typeof(Int16)) 365else if (typeof(Int16).IsAssignableFrom(type))
WsatConfig (6)
Configuration\HttpWrapper.cs (6)
127const Int16 AF_INET = 2; 128const Int16 AF_INET6 = 23; 137internal Int16 family; 138internal Int16 port; 147internal Int16 family; 148internal Int16 port;
WsatUI (6)
Configuration\HttpWrapper.cs (6)
127const Int16 AF_INET = 2; 128const Int16 AF_INET6 = 23; 137internal Int16 family; 138internal Int16 port; 147internal Int16 family; 148internal Int16 port;