5 instantiations of Int16
PresentationCore (4)
System\Windows\Media\Animation\Generated\Int16Animation.cs (4)
222Int16 from = new Int16(); 223Int16 to = new Int16(); 224Int16 accumulated = new Int16(); 225Int16 foundation = new Int16();
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6032DefaultConstructor = delegate () { return new System.Int16(); },
567 references to Int16
BuildActionTelemetryTable (1)
src\Workspaces\Core\Portable\Shared\Extensions\TelemetryExtensions.cs (1)
31var additionalSuffix = (short)(additionalSuffixString != null
csc (2)
src\Compilers\Core\CommandLine\NativeMethods.cs (2)
27internal Int16 wShowWindow; 28internal Int16 cbReserved2;
dotnet-svcutil-lib (59)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (2)
1766else if (e.Value is Int16) 1768Output.Write(((Int16)e.Value).ToString());
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
1368else if (e.Value is Int16) 1370Output.Write(((Int16)e.Value).ToString());
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (3)
3291map[(int)BinXmlToken.SQL_SMALLINT] = typeof(Int16); 4409private Int16 GetInt16(int pos) 4412return (Int16)(data[pos] | data[pos + 1] << 8);
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathNodeHelper.cs (1)
184Debug.Assert(pageNode[0].PageInfo.PageNumber <= Int16.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (2)
802internal virtual Exception CheckValueFacets(Int16 value, XmlSchemaDatatype datatype) 1079internal override Exception CheckValueFacets(Int16 value, XmlSchemaDatatype datatype)
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
853if (type == typeof(Int16)) return "short";
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (2)
919if (value < (int)Int16.MinValue || value > (int)Int16.MaxValue)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (1)
100if (!IsValid(c)) throw new ArgumentException(string.Format(ResXml.XmlInternalErrorDetails, "Invalid identifier character " + ((Int16)c).ToString()), "c");
FrameworkFork\Microsoft.Xml\Xml\Serialization\PrimitiveXmlSerializers.cs (2)
53WriteElementStringRaw(@"short", @"", Microsoft.Xml.XmlConvert.ToString((System.Int16)((System.Int16)o)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
256else if (type == typeof(Int16) ||
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (1)
749value = default(Nullable<Int16>);
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (5)
724public static string ToString(Int16 value) 1002public static Int16 ToInt16(string s) 1004return Int16.Parse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1007internal static Exception TryToInt16(string s, out Int16 result) 1009if (!Int16.TryParse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result))
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ExtensionQuery.cs (2)
118if (value is Int16) return (double)(Int16)value;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\TypeCode.cs (1)
31else if (type == typeof(Int16))
FrameworkFork\System.Runtime.Serialization\System\Xml\ArrayHelper.cs (6)
128internal class Int16ArrayHelperWithString : ArrayHelper<string, Int16> 132protected override int ReadArray(XmlDictionaryReader reader, string localName, string namespaceUri, Int16[] array, int offset, int count) 137protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, Int16[] array, int offset, int count) 143internal class Int16ArrayHelperWithDictionaryString : ArrayHelper<XmlDictionaryString, Int16> 147protected override int ReadArray(XmlDictionaryReader reader, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count) 152protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (2)
1758public override Int16[] ReadInt16Array(string localName, string namespaceUri) 1763public override Int16[] ReadInt16Array(XmlDictionaryString localName, XmlDictionaryString namespaceUri)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (5)
1149type = typeof(Int16); 1257private unsafe int ReadArray(Int16[] array, int offset, int count) 1261fixed (Int16* items = &array[offset]) 1269public override int ReadArray(string localName, string namespaceUri, Int16[] array, int offset, int count) 1276public override int ReadArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (4)
1326unsafe public override void WriteArray(string prefix, string localName, string namespaceUri, Int16[] array, int offset, int count) 1332fixed (Int16* items = &array[offset]) 1345unsafe public override void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count) 1351fixed (Int16* items = &array[offset])
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (2)
364return (Int16)ReadUInt16(); 1039return (Int16)(buffer[offset] + (buffer[offset + 1] << 8));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryAsyncCheckWriter.cs (2)
420public override void WriteArray(string prefix, string localName, string namespaceUri, Int16[] array, int offset, int count) 426public override void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (7)
946public virtual Int16[] ReadInt16Array(string localName, string namespaceUri) 951public virtual Int16[] ReadInt16Array(XmlDictionaryString localName, XmlDictionaryString namespaceUri) 956public virtual int ReadArray(string localName, string namespaceUri, Int16[] array, int offset, int count) 963if (i < Int16.MinValue || i > Int16.MaxValue) 965array[offset + actual] = (Int16)i; 971public virtual int ReadArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryWriter.cs (4)
260else if (type == typeof(Int16)) 289else if (type == typeof(Int16)) 435public virtual void WriteArray(string prefix, string localName, string namespaceUri, Int16[] array, int offset, int count) 446public virtual void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Int16[] array, int offset, int count)
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
131if (type == typeof(Int16))
Microsoft.AspNetCore.Components (4)
BindConverter.cs (4)
883/// Attempts to convert a value to a <see cref="System.Int16"/>. 895/// Attempts to convert a value to a nullable <see cref="System.Int16"/>. 918if (!short.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted)) 937if (!short.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted))
Microsoft.AspNetCore.Components.Server (14)
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequenceReaderExtensions.cs (2)
131/// Reads an <see cref="Int16"/> as big endian. 133/// <returns>False if there wasn't enough data for an <see cref="Int16"/>.</returns>
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\T4\MessagePackReader.Integers.cs (12)
282/// Reads an <see cref="Int16"/> value from: 289public Int16 ReadInt16() 297return checked((Int16)byteResult); 300return checked((Int16)sbyteResult); 303return checked((Int16)ushortResult); 306return checked((Int16)shortResult); 309return checked((Int16)uintResult); 312return checked((Int16)intResult); 315return checked((Int16)ulongResult); 318return checked((Int16)longResult); 322return checked((Int16)unchecked((sbyte)code)); 327return (Int16)code;
Microsoft.AspNetCore.Mvc.TagHelpers (1)
InputTagHelper.cs (1)
40{ nameof(Int16), "number" },
Microsoft.Build (4)
BackEnd\Components\Scheduler\Scheduler.cs (1)
198_nodeLimitOffset = Int16.Parse(strNodeLimitOffset, CultureInfo.InvariantCulture);
BackEnd\Node\NativeMethods.cs (2)
138internal Int16 wShowWindow; 143internal Int16 cbReserved2;
Resources\Constants.cs (1)
349availableStaticMethods.TryAdd("System.Int16", new Tuple<string, Type>(null, typeof(Int16)));
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\CommandLine\NativeMethods.cs (2)
27internal Int16 wShowWindow; 28internal Int16 cbReserved2;
Microsoft.Build.Tasks.Core (3)
NativeMethods.cs (3)
47void Invoke([MarshalAs(UnmanagedType.IUnknown)] Object pvInstance, int memid, Int16 wFlags, ref System.Runtime.InteropServices.ComTypes.DISPPARAMS pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, out int puArgErr); 505internal Int16 wShowWindow; 506internal Int16 cbReserved2;
Microsoft.Build.Utilities.UnitTests (2)
NativeMethods.cs (2)
138internal Int16 wShowWindow; 143internal Int16 cbReserved2;
Microsoft.CodeAnalysis (4)
ConstantValue.cs (1)
159public static ConstantValue Create(Int16 value)
CvtRes.cs (1)
275var symSection = reader.ReadInt16();
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (2)
128var numCounts = ReadInt16(bytes, ref offset); 426foreach (var groupSize in groupSizes)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Synthesized\GeneratedNames.cs (1)
410name = MetadataHelpers.InferTypeArityAndUnmangleMetadataName(name, out var arity);
Microsoft.CodeAnalysis.CSharp.Features (1)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
28nameof(Int16),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\Metadata\PE\LoadingAttributes.cs (3)
76aInt16Inst.VerifyValue(0, TypedConstantKind.Primitive, (Int16)16); 148aInt16Inst.VerifyValue(0, TypedConstantKind.Primitive, (Int16)16); 287a.VerifyNamedArgumentValue(0, "I", TypedConstantKind.Primitive, (Int16)16);
Microsoft.CodeAnalysis.Debugging.Package (2)
CustomDebugInfoReader.cs (2)
128var numCounts = ReadInt16(bytes, ref offset); 426foreach (var groupSize in groupSizes)
Microsoft.CodeAnalysis.Features (2)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (2)
128var numCounts = ReadInt16(bytes, ref offset); 426foreach (var groupSize in groupSizes)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\SemanticModelAPITests.vb (1)
730Assert.Equal(CType(0, System.Int16), constantInfo.Value)
Microsoft.CodeAnalysis.Workspaces (3)
CodeActions\CodeAction.cs (1)
221var scope = fixAllScope?.GetScopeIdForTelemetry() ?? 0;
Recommendations\AbstractRecommendationServiceRunner.cs (1)
307AddSpecialTypeSymbolAndItsAliases(nameof(Int16), SpecialType.System_Int16);
Shared\Extensions\TelemetryExtensions.cs (1)
31var additionalSuffix = (short)(additionalSuffixString != null
Microsoft.CodeAnalysis.Workspaces.UnitTests (13)
ObjectSerializationTests.cs (13)
280TestRoundTripValue(Int16.MaxValue); 283TestRoundTripValue(Int16.MaxValue); 366TestRoundTripValue<Int64>(Int16.MinValue); 367TestRoundTripValue<Int64>(Int16.MaxValue); 415writer.WriteInt16(Int16.MaxValue); 418writer.WriteInt32(Int16.MaxValue); 439Assert.Equal(Int16.MaxValue, reader.ReadInt16()); 442Assert.Equal(Int16.MaxValue, reader.ReadInt32()); 469writer.WriteScalarValue(Int16.MaxValue); 472writer.WriteScalarValue((Int32)Int16.MaxValue); 507Assert.Equal(Int16.MaxValue, (Int16)reader.ReadScalarValue()); 510Assert.Equal(Int16.MaxValue, (Int32)reader.ReadScalarValue());
Microsoft.Data.Analysis (14)
DataFrameColumnCollection.cs (1)
444throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Int16)));
PrimitiveDataFrameColumnComputations.cs (13)
4169var ret = column.Buffers[0].ReadOnlySpan[0]; 4192var ret = short.MinValue; 4233var ret = column.Buffers[0].ReadOnlySpan[0]; 4256var ret = short.MaxValue; 4297var ret = (short)1; 4320var ret = default(short); 4361var ret = (short)0; 4384var ret = default(short); 4425var value = short.MinValue; 4448var value = short.MinValue; 4473var value = short.MaxValue; 4496var value = short.MaxValue; 4565var value = (short)0;
Microsoft.DotNet.SignTool (2)
src\RealSignTool.cs (2)
33+ sizeof(Int16) // major version 34+ sizeof(Int16) // minor version
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Metrics\MeasurementExtensionsTests.cs (1)
153var total = fullSnap.EvaluateAsCounter();
Microsoft.Maui (2)
Animations\Lerp.cs (2)
24 var start = Convert.ToInt16(s); 25 var end = Convert.ToInt16(e);
Microsoft.Maui.Controls (2)
Xaml\TypeConversionExtensions.cs (2)
176 if (toType == typeof(Int16)) 177 return Int16.Parse(str, CultureInfo.InvariantCulture);
Microsoft.Maui.Controls.Build.Tasks (1)
NodeILExtensions.cs (1)
239 yield return Instruction.Create(OpCodes.Ldc_I4, unchecked((int)TryFormat(s => Int16.Parse(s, CultureInfo.InvariantCulture), node, str)));
Microsoft.Maui.Controls.Xaml (2)
CreateValuesVisitor.cs (2)
351 if (nodeType == typeof(Int16) && short.TryParse(valuestring, NumberStyles.Number, CultureInfo.InvariantCulture, out var int16val))
Microsoft.ML.Core (2)
Data\DataKind.cs (1)
43/// <summary>2-byte integer, type of <see cref="System.Int16"/>.</summary>
Utilities\Stream.cs (1)
330foreach (var v in e)
Microsoft.ML.Data (51)
Data\Conversion.cs (45)
21using I2 = Int16; 119AddStd<I1, I2>(Convert); 128AddStd<I2, I1>(Convert); 129AddStd<I2, I2>(Convert); 130AddStd<I2, I4>(Convert); 131AddStd<I2, I8>(Convert); 132AddStd<I2, R4>(Convert); 133AddStd<I2, R8>(Convert); 134AddAux<I2, SB>(Convert); 135AddStd<I2, BL>(Convert); 136AddStd<I2, TX>(Convert); 139AddStd<I4, I2>(Convert); 149AddStd<I8, I2>(Convert); 224AddStd<TX, I2>(Convert); 241AddStd<BL, I2>(Convert); 279AddIsDef<I2>(IsDefault); 301AddTryParse<I2>(TryParse); 777private bool IsDefault(in I2 src) => src == default(I2); 808public void Convert(in I2 src, ref I1 dst) => dst = (I1)src; 814public void Convert(in I1 src, ref I2 dst) => dst = src; 815public void Convert(in I2 src, ref I2 dst) => dst = src; 816public void Convert(in I4 src, ref I2 dst) => dst = (I2)src; 817public void Convert(in I8 src, ref I2 dst) => dst = (I2)src; 822public void Convert(in I2 src, ref I4 dst) => dst = src; 829public void Convert(in I2 src, ref I8 dst) => dst = src; 880public void Convert(in I2 src, ref R4 dst) => dst = (R4)src; 898public void Convert(in I2 src, ref R8 dst) => dst = (R8)src; 916public void Convert(in I2 src, ref SB dst) { ClearDst(ref dst); dst.Append(src); } 941public void Convert(in I2 src, ref TX dst) => dst = src.ToString().AsMemory(); 961public void Convert(in I2 src, ref BL dst) => dst = System.Convert.ToBoolean(src); 1236public bool TryParse(in TX src, out I2 dst) 1239TryParseSigned(I2.MaxValue, in src, out long? res); 1246Contracts.Check((I2)res == res, "Overflow or underflow occurred while converting value in text to short."); 1247dst = (I2)res; 1459private I2 ParseI2(in TX src) 1461TryParseSigned(I2.MaxValue, in src, out long? res); 1463Contracts.Check((I2)res == res, "Overflow or underflow occurred while converting value in text to short."); 1464return (I2)res; 1653public void Convert(in TX span, ref I2 value) 1723public void Convert(in BL src, ref I2 dst) => dst = System.Convert.ToInt16(src);
Data\DataViewTypeManager.cs (1)
29typeof(Int16), typeof(UInt16), typeof(Int32), typeof(UInt32),
DataLoadSave\Binary\Codecs.cs (1)
745var offset = _offsets[_index];
Transforms\Hashing.cs (1)
937foreach (var value in values.DenseValues())
Transforms\ValueMapping.cs (2)
1145CastInputTo<Int16>(ctx, out node, srcVariableName, opType, labelEncoderOutput, NumberDataViewType.Int64); 1147CastInputTo<Int16>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
Transforms\ValueToKeyMappingTransformer.cs (1)
857CastInputToString<Int16>(ctx, out node, out termIds, srcVariableName, iinfo, opType, labelEncoderOutput);
Microsoft.ML.OnnxTransformer (3)
OnnxTypeParser.cs (1)
42scalarType = typeof(System.Int16);
OnnxUtils.cs (2)
499typeof(Int16), 515{ typeof(Int16) , InternalDataKind.I2},
Microsoft.ML.TensorFlow (4)
TensorflowUtils.cs (4)
454else if (typeof(T) == typeof(Int16)) 455return new Tensor((Int16[])(object)data, dims, TF_DataType.TF_INT16); 492else if (typeof(T) == typeof(Int16)) 493return new Tensor((Int16)(object)data, TF_DataType.TF_INT16);
Microsoft.VisualBasic.Core (90)
Microsoft\VisualBasic\CompilerServices\BooleanType.vb (2)
80If TypeOf Value Is Int16 Then 81Return CBool(DirectCast(Value, Int16))
Microsoft\VisualBasic\CompilerServices\ByteType.vb (1)
68Return CByte(DirectCast(Value, Int16))
Microsoft\VisualBasic\CompilerServices\Conversions.vb (25)
93If TypeOf Value Is Int16 Then 94Return CBool(DirectCast(Value, Int16)) 237If TypeOf Value Is Int16 Then 238Return CByte(DirectCast(Value, Int16)) 384If TypeOf Value Is Int16 Then 385Return CSByte(DirectCast(Value, Int16)) 527If TypeOf Value Is Int16 Then 528Return CShort(DirectCast(Value, Int16)) 673If TypeOf Value Is Int16 Then 674Return CUShort(DirectCast(Value, Int16)) 816If TypeOf Value Is Int16 Then 817Return CInt(DirectCast(Value, Int16)) 961If TypeOf Value Is Int16 Then 962Return CUInt(DirectCast(Value, Int16)) 1107If TypeOf Value Is Int16 Then 1108Return CLng(DirectCast(Value, Int16)) 1254If TypeOf Value Is Int16 Then 1255Return CULng(DirectCast(Value, Int16)) 1413If TypeOf Value Is Int16 Then 1414Return CDec(DirectCast(Value, Int16)) 1653If TypeOf Value Is Int16 Then 1654Return CSng(DirectCast(Value, Int16)) 1798If TypeOf Value Is Int16 Then 1799Return CDbl(DirectCast(Value, Int16)) 2381Private Shared Function CastInt16Enum(ByVal Expression As Int16, ByVal TargetType As Type) As Object
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (1)
76Return CDbl(DirectCast(Value, Int16))
Microsoft\VisualBasic\CompilerServices\IntegerType.vb (1)
68Return CInt(DirectCast(Value, Int16))
Microsoft\VisualBasic\CompilerServices\LongType.vb (1)
71Return CLng(DirectCast(Value, Int16))
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (16)
243Return GetType(Int16) 785Private Shared Function ObjTstInt16(ByVal d1 As Int16, ByVal d2 As Int16) As Integer 954Dim Int16Result As Int16 975Int16Result = -CType(DirectCast(obj, Byte), Int16) 977Int16Result = -CType(conv.ToByte(Nothing), Int16) 982If TypeOf obj Is Int16 Then 983Int32Result = -CType(DirectCast(obj, Int16), Int32) 1090Return CType(Int32Result, Int16) 1120Dim int16Value As Int16 2362ElseIf result >= Int16.MinValue AndAlso result <= Int16.MaxValue Then 3010If result < Int16.MinValue OrElse result > Int16.MaxValue Then 3327Private Shared Function IDivideInt16(ByVal d1 As Int16, ByVal d2 As Int16) As Object
Microsoft\VisualBasic\CompilerServices\Operators.vb (38)
976If TypeOf Operand Is Int16 Then 977Return NegateInt16(DirectCast(Operand, Int16)) 1076Private Shared Function NegateInt16(ByVal operand As Int16) As Object 1077If operand = Int16.MinValue Then 1078Return -CInt(Int16.MinValue) 1210Private Shared Function NotInt16(ByVal operand As Int16, ByVal operandType As Type) As Object 1211Dim result As Int16 = Not operand 1606Private Shared Function AndInt16(ByVal left As Int16, ByVal right As Int16, Optional ByVal enumType As Type = Nothing) As Object 1607Dim result As Int16 = left And right 1978Private Shared Function OrInt16(ByVal left As Int16, ByVal right As Int16, Optional ByVal enumType As Type = Nothing) As Object 1979Dim result As Int16 = left Or right 2371Private Shared Function XorInt16(ByVal left As Int16, ByVal right As Int16, Optional ByVal enumType As Type = Nothing) As Object 2372Dim result As Int16 = left Xor right 2816Dim result As Int16 = CShort(left) + CShort(right) 2827Dim result As Int16 = CShort(left) + CShort(right) 2836Private Shared Function AddInt16(ByVal left As Int16, ByVal right As Int16) As Object 2840If result > Int16.MaxValue OrElse result < Int16.MinValue Then 3284Dim result As Int16 = CShort(left) - CShort(right) 3295Dim result As Int16 = CShort(left) - CShort(right) 3304Private Shared Function SubtractInt16(ByVal left As Int16, ByVal right As Int16) As Object 3308If result < Int16.MinValue OrElse result > Int16.MaxValue Then 3723If result > Int16.MaxValue Then 3735Dim result As Int16 = CShort(left) * CShort(right) 3744Private Shared Function MultiplyInt16(ByVal left As Int16, ByVal right As Int16) As Object 3748If result > Int16.MaxValue OrElse result < Int16.MinValue Then 4603Private Shared Function ModInt16(ByVal left As Int16, ByVal right As Int16) As Object 4991Private Shared Function IntDivideInt16(ByVal left As Int16, ByVal right As Int16) As Object
Microsoft\VisualBasic\CompilerServices\ShortType.vb (1)
68Return CShort(DirectCast(Value, Int16))
Microsoft\VisualBasic\CompilerServices\SingleType.vb (1)
82Return CSng(DirectCast(Value, Int16))
Microsoft\VisualBasic\Conversion.vb (2)
617ivalue = Int16.MinValue + (ivalue And &H7FFFL) 688ivalue = Int16.MinValue + (ivalue And &H7FFFL)
Microsoft\VisualBasic\Strings.vb (1)
547Public Function Len(ByVal Expression As Int16) As Integer
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
301[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Int16))]
netstandard (1)
netstandard.cs (1)
877[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Int16))]
PresentationBuildTasks (20)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (3)
169private static Int16 GetKnownStringIdFromName(string stringValue) 1427out Int16 stringId) 1453internal Int16 AddStringInfoMap(
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (8)
1792internal Int16 ValueId 1826private Int16 _valueId; 1880internal Int16 NameId 1918private Int16 _nameId; 1968internal Int16 NameId 1995private Int16 _nameId; 3892internal Int16 ValueId 3901private Int16 _valueId;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5492case KnownElements.Int16: t = typeof(Int16); break;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
160else if (typeof(Int16).IsAssignableFrom(type))
src\Microsoft.DotNet.Wpf\src\WindowsBase\MS\Internal\IO\Packaging\CompoundFile\ContainerUtilities.cs (1)
30private static readonly Int32 _int16Size = sizeof(Int16);
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\VersionPair.cs (6)
41internal VersionPair(Int16 major, Int16 minor) 72public Int16 Major 83public Int16 Minor 352private Int16 _major; // Major number 353private Int16 _minor; // Minor number
PresentationCore (106)
MS\Internal\AnimatedTypeHelpers.cs (21)
39internal static Int16 InterpolateInt16(Int16 from, Int16 to, Double progress) 55return (Int16)(from + (Int16)addend); 179internal static Int16 AddInt16(Int16 value1, Int16 value2) 181return (Int16)(value1 + value2); 281internal static Int16 SubtractInt16(Int16 value1, Int16 value2) 283return (Int16)(value1 - value2); 406internal static Double GetSegmentLengthInt16(Int16 from, Int16 to) 529internal static Int16 ScaleInt16(Int16 value, Double factor) 531return (Int16)((Double)value * factor); 643internal static bool IsValidAnimationValueInt16(Int16 value) 780internal static Int16 GetZeroValueInt16(Int16 baseValue)
MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (2)
226else if (typeof(Int16) == type) 230else if (typeof(Int16[]) == type)
System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
497public DiscreteInt16KeyFrame(Int16 value) 505public DiscreteInt16KeyFrame(Int16 value, KeyTime keyTime) 533protected override Int16 InterpolateValueCore(Int16 baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
542public EasingInt16KeyFrame(Int16 value) 551public EasingInt16KeyFrame(Int16 value, KeyTime keyTime) 561public EasingInt16KeyFrame(Int16 value, KeyTime keyTime, IEasingFunction easingFunction) 590protected override Int16 InterpolateValueCore(Int16 baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\Int16Animation.cs (32)
32private Int16[] _keyValues; 47Type typeofProp = typeof(Int16?); 56new PropertyMetadata((Int16?)null, propCallback), 63new PropertyMetadata((Int16?)null, propCallback), 70new PropertyMetadata((Int16?)null, propCallback), 94public Int16Animation(Int16 toValue, Duration duration) 106public Int16Animation(Int16 toValue, Duration duration, FillBehavior fillBehavior) 119public Int16Animation(Int16 fromValue, Int16 toValue, Duration duration) 132public Int16Animation(Int16 fromValue, Int16 toValue, Duration duration, FillBehavior fillBehavior) 205protected override Int16 GetCurrentValueCore(Int16 defaultOriginValue, Int16 defaultDestinationValue, AnimationClock animationClock) 222Int16 from = new Int16(); 223Int16 to = new Int16(); 224Int16 accumulated = new Int16(); 225Int16 foundation = new Int16(); 339Int16 accumulator = AnimatedTypeHelpers.SubtractInt16(to, from); 364_keyValues = new Int16[2]; 371_keyValues = new Int16[2]; 378_keyValues = new Int16[1]; 385_keyValues = new Int16[1]; 391_keyValues = new Int16[1]; 412Int16? typedValue = (Int16?)value; 432public Int16? From 436return (Int16?)GetValue(FromProperty); 452public Int16? To 456return (Int16?)GetValue(ToProperty); 472public Int16? By 476return (Int16?)GetValue(ByProperty);
System\Windows\Media\Animation\Generated\Int16AnimationBase.cs (9)
80return GetCurrentValue((Int16)defaultOriginValue, (Int16)defaultDestinationValue, animationClock); 92return typeof(Int16); 129public Int16 GetCurrentValue(Int16 defaultOriginValue, Int16 defaultDestinationValue, AnimationClock animationClock) 185protected abstract Int16 GetCurrentValueCore(Int16 defaultOriginValue, Int16 defaultDestinationValue, AnimationClock animationClock);
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (8)
312protected sealed override Int16 GetCurrentValueCore( 313Int16 defaultOriginValue, 314Int16 defaultDestinationValue, 340Int16 currentIterationValue; 376Int16 fromValue; 621private Int16 GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 934Int16 prevKeyValue = _keyFrames[index - 1].Value; 938Int16 currentKeyValue = _keyFrames[index].Value;
System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
883protected Int16KeyFrame(Int16 value) 892protected Int16KeyFrame(Int16 value, KeyTime keyTime) 935typeof(Int16), 950Value = (Int16)value; 957public Int16 Value 961return (Int16)GetValue(ValueProperty); 978public Int16 InterpolateValue( 979Int16 baseValue, 996protected abstract Int16 InterpolateValueCore( 997Int16 baseValue,
System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
350public LinearInt16KeyFrame(Int16 value) 358public LinearInt16KeyFrame(Int16 value, KeyTime keyTime) 384protected override Int16 InterpolateValueCore(Int16 baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
555public SplineInt16KeyFrame(Int16 value) 564public SplineInt16KeyFrame(Int16 value, KeyTime keyTime) 574public SplineInt16KeyFrame(Int16 value, KeyTime keyTime, KeySpline keySpline) 605protected override Int16 InterpolateValueCore(Int16 baseValue, double keyFrameProgress)
System\Windows\Media\Effects\ShaderEffect.cs (6)
579data.ShaderConstantFloatRegistersSize = (uint)(sizeof(Int16) * _floatCount); 581data.ShaderConstantIntRegistersSize = (uint)(sizeof(Int16) * _intCount); 583data.ShaderConstantBoolRegistersSize = (uint)(sizeof(Int16) * _boolCount); 740Int16 regIndex = (Int16)i; // put onto stack so next &-operator compiles 741channel.AppendCommandData((byte*)&regIndex, sizeof(Int16));
PresentationFramework (117)
MS\Internal\Data\DefaultValueConverter.cs (2)
528typeof(Byte), typeof(Int16), 535typeof(Int32), typeof(Int64), typeof(Byte), typeof(Int16),
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (29)
33public const Int16 BooleanConverter = 46; 34public const Int16 DependencyPropertyConverter = 137; 35public const Int16 EnumConverter = 195; 36public const Int16 StringConverter = 615; 38public const Int16 XamlBrushSerializer = 744; 39public const Int16 XamlInt32CollectionSerializer = 745; 40public const Int16 XamlPathDataSerializer = 746; 41public const Int16 XamlPoint3DCollectionSerializer = 747; 42public const Int16 XamlPointCollectionSerializer = 748; 43public const Int16 XamlVector3DCollectionSerializer = 752; 45public const Int16 MaxKnownType = 759; 46public const Int16 MaxKnownProperty = 268; 47public const Int16 MinKnownProperty = -268; 49public const Int16 VisualTreeKnownPropertyId = -174; 51public static Type GetAttachableTargetType(Int16 propertyId) 70public static Assembly GetKnownAssembly(Int16 assemblyId) 87public static Type GetKnownType(Int16 typeId) 89typeId = (Int16)(-typeId); 395case 302: t = () => typeof(Int16); break; 860internal static TypeConverter CreateKnownTypeConverter(Int16 converterId) 960public 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)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (29)
37private const Int16 ExtensionIdMask = 0x0FFF; 38private const Int16 TypeExtensionValueMask = 0x4000; 39private const Int16 StaticExtensionValueMask = 0x2000; 944Int16 stringId = _binaryReader.ReadInt16(); 965Int16 keyStringId = _binaryReader.ReadInt16(); 984Int16 typeId = _binaryReader.ReadInt16(); 1083Int16 typeId = _binaryReader.ReadInt16(); 1127Int16 typeId = _binaryReader.ReadInt16(); 1301Int16 typeId = _binaryReader.ReadInt16(); 1477private XamlMember GetProperty(Int16 propertyId, XamlType parentType) 1483private XamlMember GetProperty(Int16 propertyId, bool isAttached) 1632Int16 extensionId = _binaryReader.ReadInt16(); 1633Int16 valueId = _binaryReader.ReadInt16(); 1637Int16 extensionTypeId = (Int16)(extensionId & ExtensionIdMask); 1881Int16 resourceId = _binaryReader.ReadInt16(); 2023private string Logic_GetFullyQualifiedNameForMember(Int16 propertyId) 2172Int16 assemblyId = _binaryReader.ReadInt16(); 2178Int16 assemblyId = _binaryReader.ReadInt16(); 2187Int16 typeId = _binaryReader.ReadInt16(); 2188Int16 assemblyId = _binaryReader.ReadInt16(); 2199Int16 typeId = _binaryReader.ReadInt16(); 2200Int16 assemblyId = _binaryReader.ReadInt16(); 2202Int16 serializerId = _binaryReader.ReadInt16(); // currently not used. (found through reflection) 2213Int16 declaringTypeId = _binaryReader.ReadInt16(); 2223Int16 id = _binaryReader.ReadInt16(); 2231Int16 propertyId = _binaryReader.ReadInt16(); 2500Int16 serializerId, 2587Int16 propId = (short)(bytes[0] | (bytes[1] << 8));
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (30)
95internal const Int16 StaticExtensionTypeId = 602; 96internal const Int16 StaticResourceTypeId = 603; 97internal const Int16 DynamicResourceTypeId = 189; 98internal const Int16 TemplateBindingTypeId = 634; 99internal const Int16 TypeExtensionTypeId = 691; 118internal Assembly GetAssembly(Int16 assemblyId) 130internal String GetAssemblyName(Int16 assemblyId) 142internal Type GetClrType(Int16 typeId) 159internal XamlType GetXamlType(Int16 typeId) 176internal DependencyProperty GetDependencyProperty(Int16 propertyId) 189internal XamlMember GetProperty(Int16 propertyId, XamlType parentType) 228internal XamlMember GetProperty(Int16 propertyId, bool isAttached) 273internal XamlType GetPropertyDeclaringType(Int16 propertyId) 291internal String GetPropertyName(Int16 propertyId, bool fullName) 309internal string GetString(Int16 stringId) 332internal void AddAssembly(Int16 assemblyId, string assemblyName) 356internal void AddXamlType(Int16 typeId, Int16 assemblyId, string typeName, TypeInfoFlags flags) 383internal void AddProperty(Int16 propertyId, Int16 declaringTypeId, string propertyName) 407internal void AddString(Int16 stringId, string value) 541private XamlType ResolveBamlType(BamlType bamlType, Int16 typeId) 561private bool TryGetBamlAssembly(Int16 assemblyId, out BamlAssembly bamlAssembly) 583private bool TryGetBamlType(Int16 typeId, out BamlType bamlType, out XamlType xamlType) 614private bool TryGetBamlProperty(Int16 propertyId, out BamlProperty bamlProperty, out XamlMember xamlMember) 635Int16 typeId; 727public BamlType(Int16 assemblyId, string name) 736public Int16 AssemblyId; 746public BamlProperty(Int16 declaringTypeId, string name) 755public readonly Int16 DeclaringTypeId;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6029typeof(System.Int16),
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (12)
13public const Int16 BooleanConverter = 46; 14public const Int16 DependencyPropertyConverter = 137; 15public const Int16 EnumConverter = 195; 17public const Int16 XamlBrushSerializer = 744; 18public const Int16 XamlInt32CollectionSerializer = 745; 19public const Int16 XamlPathDataSerializer = 746; 20public const Int16 XamlPoint3DCollectionSerializer = 747; 21public const Int16 XamlPointCollectionSerializer = 748; 22public const Int16 XamlVector3DCollectionSerializer = 752; 60internal string GetKnownBamlString(Int16 stringId) 79internal Baml6Assembly GetKnownBamlAssembly(Int16 assemblyId) 96internal Baml6Assembly CreateKnownBamlAssembly(Int16 assemblyId)
System\Windows\Markup\BamlMapTable.cs (3)
169private static Int16 GetKnownStringIdFromName(string stringValue) 1427out Int16 stringId) 1453internal Int16 AddStringInfoMap(
System\Windows\Markup\BamlRecords.cs (8)
1792internal Int16 ValueId 1826private Int16 _valueId; 1880internal Int16 NameId 1918private Int16 _nameId; 1968internal Int16 NameId 1995private Int16 _nameId; 3892internal Int16 ValueId 3901private Int16 _valueId;
System\Windows\Markup\KnownTypes.cs (1)
5849case KnownElements.Int16: t = typeof(System.Int16); break;
System\Windows\Markup\XamlFigureLengthSerializer.cs (1)
100writer.Write((Int16)intAmount);
System\Windows\Markup\XamlGridLengthSerializer.cs (1)
100writer.Write((Int16)intAmount);
Replay (2)
src\Compilers\Core\CommandLine\NativeMethods.cs (2)
27internal Int16 wShowWindow; 28internal Int16 cbReserved2;
Roslyn.Test.PdbUtilities (1)
Reader\MethodDebugInfoBytes.cs (1)
74foreach (var groupSize in groupSizes)
System.Linq.Expressions (3)
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (3)
56case TypeCode.Int16: return FastCreate<Int16>(target, pi); 100case TypeCode.Int16: return FastCreate<T0, Int16>(target, pi); 142case TypeCode.Int16: return new FuncCallInstruction<T0, T1, Int16>(target);
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1963short IConvertible.ToInt16(IFormatProvider? provider) => throw InvalidCast(nameof(Int16));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (14)
17using NativeExponentType = System.Int16; 1010int IFloatingPoint<NFloat>.GetExponentByteCount() => sizeof(NativeExponentType); 1015NativeExponentType exponent = _value.Exponent; 1019return (sizeof(NativeExponentType) * 8) - NativeExponentType.LeadingZeroCount(exponent); 1023return (sizeof(NativeExponentType) * 8) + 1 - NativeExponentType.LeadingZeroCount((NativeExponentType)(~exponent)); 1043if (destination.Length >= sizeof(NativeExponentType)) 1045NativeExponentType exponent = _value.Exponent; 1054bytesWritten = sizeof(NativeExponentType); 1067if (destination.Length >= sizeof(NativeExponentType)) 1069NativeExponentType exponent = _value.Exponent; 1078bytesWritten = sizeof(NativeExponentType);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
280[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Int16))]
vbc (2)
src\Compilers\Core\CommandLine\NativeMethods.cs (2)
27internal Int16 wShowWindow; 28internal Int16 cbReserved2;
VBCSCompiler (2)
src\Compilers\Core\CommandLine\NativeMethods.cs (2)
27internal Int16 wShowWindow; 28internal Int16 cbReserved2;