-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExtensionMethods.Multiply.cs
205 lines (157 loc) · 7.98 KB
/
ExtensionMethods.Multiply.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// A part of the C# Language Syntactic Sugar suite.
namespace CLSS
{
public static partial class CommonMathOps
{
/// <summary>
/// Multiplies source number with another number.
/// </summary>
/// <param name="source">The multiplier in a multiplication.</param>
/// <param name="multiplicand">The multiplicand in a multiplication.</param>
/// <returns>Result of <paramref name="source"/> *
/// <paramref name="multiplicand"/>.</returns>
public static int Multiply(this sbyte source, int multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static uint Multiply(this byte source, uint multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static int Multiply(this short source, int multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static uint Multiply(this ushort source, uint multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static int Multiply(this int source, int multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static uint Multiply(this uint source, uint multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static long Multiply(this sbyte source, long multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static ulong Multiply(this byte source, ulong multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static long Multiply(this short source, long multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static ulong Multiply(this ushort source, ulong multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static long Multiply(this int source, long multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static ulong Multiply(this uint source, ulong multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static long Multiply(this long source, long multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static ulong Multiply(this ulong source, ulong multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static decimal Multiply(this sbyte source, decimal multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static decimal Multiply(this byte source, decimal multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static decimal Multiply(this short source, decimal multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static decimal Multiply(this ushort source, decimal multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static decimal Multiply(this int source, decimal multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static decimal Multiply(this uint source, decimal multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static decimal Multiply(this long source, decimal multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static decimal Multiply(this ulong source, decimal multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static decimal Multiply(this decimal source, decimal multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this sbyte source, float multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this byte source, float multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this short source, float multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this ushort source, float multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this int source, float multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this uint source, float multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this long source, float multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this ulong source, float multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this sbyte source, double multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this byte source, double multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this short source, double multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this ushort source, double multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this int source, double multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this uint source, double multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this long source, double multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this ulong source, double multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this float source, int multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this float source, long multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this float source, ulong multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static float Multiply(this float source, float multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this float source, double multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this double source, int multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this double source, long multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this double source, ulong multiplicand)
{ return source * multiplicand; }
/// <inheritdoc cref="Multiply(sbyte, int)"/>
public static double Multiply(this double source, double multiplicand)
{ return source * multiplicand; }
}
}