terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
MaskedTextProvider.cs
Go to the documentation of this file.
1using System;
8using System.Text;
10
12{
13 // Token: 0x020003A2 RID: 930
15 {
16 // Token: 0x06001834 RID: 6196 RVA: 0x0004434C File Offset: 0x0004254C
17 public MaskedTextProvider(string mask)
18 {
19 }
20
21 // Token: 0x06001835 RID: 6197 RVA: 0x0004435C File Offset: 0x0004255C
22 public MaskedTextProvider(string mask, bool restrictToAscii)
23 {
24 }
25
26 // Token: 0x06001836 RID: 6198 RVA: 0x0004436C File Offset: 0x0004256C
28 {
29 }
30
31 // Token: 0x06001837 RID: 6199 RVA: 0x00044380 File Offset: 0x00042580
33 {
34 }
35
36 // Token: 0x06001838 RID: 6200 RVA: 0x00044390 File Offset: 0x00042590
37 public MaskedTextProvider(string mask, char passwordChar, bool allowPromptAsInput)
38 {
39 }
40
41 // Token: 0x06001839 RID: 6201 RVA: 0x000443A0 File Offset: 0x000425A0
43 {
44 }
45
46 // Token: 0x0600183A RID: 6202 RVA: 0x000443B0 File Offset: 0x000425B0
48 {
49 bool flag = string.IsNullOrEmpty(mask);
50 int stringLength = mask._stringLength;
51 long num = 0L;
52 bool flag2 = MaskedTextProvider.IsPrintableChar(mask[(int)num]);
53 int stringLength2 = mask._stringLength;
54 if (culture == null)
55 {
56 if (stringLength2 == 0)
57 {
58 }
60 }
63 int parent_lcid = array.parent_lcid;
64 }
65
66 // Token: 0x0600183B RID: 6203 RVA: 0x00002050 File Offset: 0x00000250
67 private void Initialize()
68 {
69 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
70 }
71
72 // Token: 0x17000589 RID: 1417
73 // (get) Token: 0x0600183C RID: 6204 RVA: 0x0004447C File Offset: 0x0004267C
75 {
76 get
77 {
78 if (!true)
79 {
80 }
81 bool flag;
82 return flag;
83 }
84 }
85
86 // Token: 0x1700058A RID: 1418
87 // (get) Token: 0x0600183D RID: 6205 RVA: 0x00044490 File Offset: 0x00042690
88 // (set) Token: 0x0600183E RID: 6206 RVA: 0x000444A4 File Offset: 0x000426A4
90 {
92 get
93 {
95 }
97 private set
98 {
100 }
101 }
102
103 // Token: 0x1700058B RID: 1419
104 // (get) Token: 0x0600183F RID: 6207 RVA: 0x000444B8 File Offset: 0x000426B8
106 {
107 get
108 {
109 /*
110An exception occurred when decompiling this method (0600183F)
111
112ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.ComponentModel.MaskedTextProvider::get_AvailableEditPositionCount()
113
114 ---> System.Exception: Basic block has to end with unconditional control flow.
115{
116 Block_0:
117 stloc:int32(var_0_06, ldfld:int32(MaskedTextProvider::_requiredEditChars, ldloc:MaskedTextProvider(this)))
118 stloc:char(var_1_0D, ldfld:char(MaskedTextProvider::_passwordChar, ldloc:MaskedTextProvider(this)))
119 stloc:int32(var_2_14, ldfld:int32(MaskedTextProvider::<AssignedEditPositionCount>k__BackingField, ldloc:MaskedTextProvider(this)))
120}
121
122 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
123 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
124 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
125 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
126 --- End of inner exception stack trace ---
127 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
128 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
129*/;
130 }
131 }
132
133 // Token: 0x06001840 RID: 6208 RVA: 0x000444DC File Offset: 0x000426DC
134 public object Clone()
135 {
136 Type type = base.GetType();
137 if (fieldof(global::<PrivateImplementationDetails>.A5BD4B1718E46B13C0771AD632FC5E42B140BD94B602D5F6D7F9304B41DF51F6).FieldHandle == null)
138 {
139 }
141 string text = this.<Mask>k__BackingField;
143 char passwordChar = this._passwordChar;
144 char promptChar = this._promptChar;
145 bool asciiOnly = this.AsciiOnly;
146 string text2 = this.<Mask>k__BackingField;
147 if (text2 == null || text2 != null)
148 {
150 if (cultureInfo2 == null || cultureInfo2 != null)
151 {
153 char promptChar2 = this._promptChar;
154 char passwordChar2 = this._passwordChar;
155 bool asciiOnly2 = this.AsciiOnly;
156 object obj;
157 if (obj != null)
158 {
159 }
160 return obj;
161 }
162 }
163 throw new ArrayTypeMismatchException();
164 }
165
166 // Token: 0x1700058C RID: 1420
167 // (get) Token: 0x06001841 RID: 6209 RVA: 0x000445FC File Offset: 0x000427FC
169 {
171 get
172 {
173 return this.<Culture>k__BackingField;
174 }
175 }
176
177 // Token: 0x1700058D RID: 1421
178 // (get) Token: 0x06001842 RID: 6210 RVA: 0x00002050 File Offset: 0x00000250
179 public static char DefaultPasswordChar
180 {
181 get
182 {
183 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
184 }
185 }
186
187 // Token: 0x1700058E RID: 1422
188 // (get) Token: 0x06001843 RID: 6211 RVA: 0x00044610 File Offset: 0x00042810
190 {
191 get
192 {
193 /*
194An exception occurred when decompiling this method (06001843)
195
196ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.ComponentModel.MaskedTextProvider::get_EditPositionCount()
197
198 ---> System.Exception: Basic block has to end with unconditional control flow.
199{
200 Block_0:
201 stloc:int32(var_0_06, ldfld:int32(MaskedTextProvider::_requiredEditChars, ldloc:MaskedTextProvider(this)))
202 stloc:char(var_1_0D, ldfld:char(MaskedTextProvider::_passwordChar, ldloc:MaskedTextProvider(this)))
203}
204
205 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
206 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
207 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
208 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
209 --- End of inner exception stack trace ---
210 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
211 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
212*/;
213 }
214 }
215
216 // Token: 0x1700058F RID: 1423
217 // (get) Token: 0x06001844 RID: 6212 RVA: 0x0004462C File Offset: 0x0004282C
219 {
220 get
221 {
223 throw new OutOfMemoryException();
224 }
225 }
226
227 // Token: 0x17000590 RID: 1424
228 // (get) Token: 0x06001845 RID: 6213 RVA: 0x00044650 File Offset: 0x00042850
229 // (set) Token: 0x06001846 RID: 6214 RVA: 0x00044664 File Offset: 0x00042864
230 public bool IncludeLiterals
231 {
232 get
233 {
234 if (!true)
235 {
236 }
237 bool flag;
238 return flag;
239 }
240 set
241 {
242 if (!true)
243 {
244 }
245 }
246 }
247
248 // Token: 0x17000591 RID: 1425
249 // (get) Token: 0x06001847 RID: 6215 RVA: 0x00044674 File Offset: 0x00042874
250 // (set) Token: 0x06001848 RID: 6216 RVA: 0x00044688 File Offset: 0x00042888
251 public bool IncludePrompt
252 {
253 get
254 {
255 if (!true)
256 {
257 }
258 bool flag;
259 return flag;
260 }
261 set
262 {
263 if (!true)
264 {
265 }
266 }
267 }
268
269 // Token: 0x17000592 RID: 1426
270 // (get) Token: 0x06001849 RID: 6217 RVA: 0x00044698 File Offset: 0x00042898
271 public bool AsciiOnly
272 {
273 get
274 {
275 if (!true)
276 {
277 }
278 bool flag;
279 return flag;
280 }
281 }
282
283 // Token: 0x17000593 RID: 1427
284 // (get) Token: 0x0600184A RID: 6218 RVA: 0x000446AC File Offset: 0x000428AC
285 // (set) Token: 0x0600184B RID: 6219 RVA: 0x000446C0 File Offset: 0x000428C0
286 public bool IsPassword
287 {
288 get
289 {
290 /*
291An exception occurred when decompiling this method (0600184A)
292
293ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.MaskedTextProvider::get_IsPassword()
294
295 ---> System.Exception: Basic block has to end with unconditional control flow.
296{
297 Block_0:
298 stloc:char(var_0_06, ldfld:char(MaskedTextProvider::_passwordChar, ldloc:MaskedTextProvider(this)))
299}
300
301 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
302 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
303 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
304 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
305 --- End of inner exception stack trace ---
306 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
307 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
308*/;
309 }
310 set
311 {
312 char passwordChar = this._passwordChar;
313 }
314 }
315
316 // Token: 0x17000594 RID: 1428
317 // (get) Token: 0x0600184C RID: 6220 RVA: 0x00002050 File Offset: 0x00000250
318 public static int InvalidIndex
319 {
320 get
321 {
322 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
323 }
324 }
325
326 // Token: 0x17000595 RID: 1429
327 // (get) Token: 0x0600184D RID: 6221 RVA: 0x000446E0 File Offset: 0x000428E0
329 {
330 get
331 {
332 int length = this._testString.Length;
333 int num;
335 {
336 return num;
337 }
338 return num;
339 }
340 }
341
342 // Token: 0x17000596 RID: 1430
343 // (get) Token: 0x0600184E RID: 6222 RVA: 0x00044704 File Offset: 0x00042904
344 public int Length
345 {
346 get
347 {
348 return this._testString.Length;
349 }
350 }
351
352 // Token: 0x17000597 RID: 1431
353 // (get) Token: 0x0600184F RID: 6223 RVA: 0x0004471C File Offset: 0x0004291C
354 public string Mask
355 {
357 get
358 {
359 return this.<Mask>k__BackingField;
360 }
361 }
362
363 // Token: 0x17000598 RID: 1432
364 // (get) Token: 0x06001850 RID: 6224 RVA: 0x00044730 File Offset: 0x00042930
365 public bool MaskCompleted
366 {
367 get
368 {
369 /*
370An exception occurred when decompiling this method (06001850)
371
372ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.MaskedTextProvider::get_MaskCompleted()
373
374 ---> System.Exception: Basic block has to end with unconditional control flow.
375{
376 Block_0:
377 stloc:int32(var_0_06, ldfld:int32(MaskedTextProvider::_requiredCharCount, ldloc:MaskedTextProvider(this)))
378 stloc:int32(var_1_0D, ldfld:int32(MaskedTextProvider::_optionalEditChars, ldloc:MaskedTextProvider(this)))
379}
380
381 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
382 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
383 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
384 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
385 --- End of inner exception stack trace ---
386 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
387 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
388*/;
389 }
390 }
391
392 // Token: 0x17000599 RID: 1433
393 // (get) Token: 0x06001851 RID: 6225 RVA: 0x0004474C File Offset: 0x0004294C
394 public bool MaskFull
395 {
396 get
397 {
398 /*
399An exception occurred when decompiling this method (06001851)
400
401ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.MaskedTextProvider::get_MaskFull()
402
403 ---> System.Exception: Basic block has to end with unconditional control flow.
404{
405 Block_0:
406 stloc:int32(var_0_06, ldfld:int32(MaskedTextProvider::_requiredEditChars, ldloc:MaskedTextProvider(this)))
407 stloc:char(var_1_0D, ldfld:char(MaskedTextProvider::_passwordChar, ldloc:MaskedTextProvider(this)))
408 stloc:int32(var_2_14, ldfld:int32(MaskedTextProvider::<AssignedEditPositionCount>k__BackingField, ldloc:MaskedTextProvider(this)))
409}
410
411 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
412 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
413 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
414 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
415 --- End of inner exception stack trace ---
416 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
417 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
418*/;
419 }
420 }
421
422 // Token: 0x1700059A RID: 1434
423 // (get) Token: 0x06001852 RID: 6226 RVA: 0x00044770 File Offset: 0x00042970
424 // (set) Token: 0x06001853 RID: 6227 RVA: 0x00044784 File Offset: 0x00042984
425 public char PasswordChar
426 {
427 get
428 {
429 return this._passwordChar;
430 }
431 set
432 {
433 char promptChar = this._promptChar;
435 char passwordChar = this._passwordChar;
436 }
437 }
438
439 // Token: 0x1700059B RID: 1435
440 // (get) Token: 0x06001854 RID: 6228 RVA: 0x000447A8 File Offset: 0x000429A8
441 // (set) Token: 0x06001855 RID: 6229 RVA: 0x000447BC File Offset: 0x000429BC
442 public char PromptChar
443 {
444 get
445 {
446 return this._promptChar;
447 }
448 set
449 {
450 char passwordChar = this._passwordChar;
452 char promptChar = this._promptChar;
455 int length = testString.Length;
456 long num = 0L;
458 bool flag2 = this.IsEditPosition((int)num);
459 if (stringDescriptor._version == 0)
460 {
462 char promptChar2 = this._promptChar;
463 testString2[(int)num] = promptChar2;
464 }
465 int length2 = this._testString.Length;
466 }
467 }
468
469 // Token: 0x1700059C RID: 1436
470 // (get) Token: 0x06001856 RID: 6230 RVA: 0x0004483C File Offset: 0x00042A3C
471 // (set) Token: 0x06001857 RID: 6231 RVA: 0x00044850 File Offset: 0x00042A50
472 public bool ResetOnPrompt
473 {
474 get
475 {
476 if (!true)
477 {
478 }
479 bool flag;
480 return flag;
481 }
482 set
483 {
484 if (!true)
485 {
486 }
487 }
488 }
489
490 // Token: 0x1700059D RID: 1437
491 // (get) Token: 0x06001858 RID: 6232 RVA: 0x00044860 File Offset: 0x00042A60
492 // (set) Token: 0x06001859 RID: 6233 RVA: 0x00044874 File Offset: 0x00042A74
493 public bool ResetOnSpace
494 {
495 get
496 {
497 if (!true)
498 {
499 }
500 bool flag;
501 return flag;
502 }
503 set
504 {
505 if (!true)
506 {
507 }
508 }
509 }
510
511 // Token: 0x1700059E RID: 1438
512 // (get) Token: 0x0600185A RID: 6234 RVA: 0x00044884 File Offset: 0x00042A84
513 // (set) Token: 0x0600185B RID: 6235 RVA: 0x00044898 File Offset: 0x00042A98
514 public bool SkipLiterals
515 {
516 get
517 {
518 if (!true)
519 {
520 }
521 bool flag;
522 return flag;
523 }
524 set
525 {
526 if (!true)
527 {
528 }
529 }
530 }
531
532 // Token: 0x1700059F RID: 1439
533 public char this[int index]
534 {
535 get
536 {
537 int length = this._testString.Length;
538 return this._testString[index];
539 }
540 }
541
542 // Token: 0x0600185D RID: 6237 RVA: 0x000448D8 File Offset: 0x00042AD8
543 public bool Add(char input)
544 {
545 bool flag;
546 return flag;
547 }
548
549 // Token: 0x0600185E RID: 6238 RVA: 0x000448E8 File Offset: 0x00042AE8
550 public bool Add(char input, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
551 {
554 int length = testString.Length;
555 int length2 = this._testString.Length;
559 int length3 = this._testString.Length;
560 int num;
562 return this.TestSetChar(input, num, resultHint);
563 }
564
565 // Token: 0x0600185F RID: 6239 RVA: 0x0004496C File Offset: 0x00042B6C
566 public bool Add(string input)
567 {
568 bool flag;
569 return flag;
570 }
571
572 // Token: 0x06001860 RID: 6240 RVA: 0x0004497C File Offset: 0x00042B7C
573 public bool Add(string input, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
574 {
575 /*
576An exception occurred when decompiling this method (06001860)
577
578ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.MaskedTextProvider::Add(System.String,System.Int32,System.ComponentModel.MaskedTextResultHint)
579
580 ---> System.Exception: Basic block has to end with unconditional control flow.
581{
582 IL_0024:
583 stloc:int32(var_1_25, ldc.i4:int32(2))
584 stfld:int32(MaskedTextResultHint::value__, ldloc:MaskedTextResultHint[exp:valuetype System.ComponentModel.MaskedTextResultHint&](resultHint), ldloc:int32(var_1_25))
585}
586
587 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
588 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
589 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
590 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
591 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
592 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
593 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
594 --- End of inner exception stack trace ---
595 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
596 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
597*/;
598 }
599
600 // Token: 0x06001861 RID: 6241 RVA: 0x000449B8 File Offset: 0x00042BB8
601 public void Clear()
602 {
603 }
604
605 // Token: 0x06001862 RID: 6242 RVA: 0x000449C8 File Offset: 0x00042BC8
607 {
608 long num3;
610 {
611 int num = 4;
612 resultHint.value__ = num;
613 int length = this._testString.Length;
614 long num2 = 0L;
615 this.ResetChar((int)num2);
617 num3 = 0L;
618 int length2 = testString.Length;
619 return;
620 }
621 int num4 = 2;
623 }
624
625 // Token: 0x06001863 RID: 6243 RVA: 0x00044A1C File Offset: 0x00042C1C
626 public int FindAssignedEditPositionFrom(int position, bool direction)
627 {
628 int length;
630 {
631 length = this._testString.Length;
633 {
634 return length;
635 }
636 }
637 return length;
638 }
639
640 // Token: 0x06001864 RID: 6244 RVA: 0x00044A4C File Offset: 0x00042C4C
641 public int FindAssignedEditPositionInRange(int startPosition, int endPosition, bool direction)
642 {
643 int num;
645 {
646 return num;
647 }
648 return num;
649 }
650
651 // Token: 0x06001865 RID: 6245 RVA: 0x00044A64 File Offset: 0x00042C64
652 public int FindEditPositionFrom(int position, bool direction)
653 {
654 return this._testString.Length;
655 }
656
657 // Token: 0x06001866 RID: 6246 RVA: 0x00044A80 File Offset: 0x00042C80
658 public int FindEditPositionInRange(int startPosition, int endPosition, bool direction)
659 {
660 return this.FindPositionInRange(startPosition, endPosition, direction, MaskedTextProvider.CharType.EditOptional | MaskedTextProvider.CharType.EditRequired);
661 }
662
663 // Token: 0x06001867 RID: 6247 RVA: 0x00044A98 File Offset: 0x00042C98
664 private int FindEditPositionInRange(int startPosition, int endPosition, bool direction, byte assignedStatus)
665 {
667 if (stringDescriptor._version != 0 || stringDescriptor._version == 0)
668 {
669 }
670 int num;
671 return num;
672 }
673
674 // Token: 0x06001868 RID: 6248 RVA: 0x00044AC0 File Offset: 0x00042CC0
675 public int FindNonEditPositionFrom(int position, bool direction)
676 {
677 return this._testString.Length;
678 }
679
680 // Token: 0x06001869 RID: 6249 RVA: 0x00044ADC File Offset: 0x00042CDC
681 public int FindNonEditPositionInRange(int startPosition, int endPosition, bool direction)
682 {
683 return this.FindPositionInRange(startPosition, endPosition, direction, MaskedTextProvider.CharType.Separator | MaskedTextProvider.CharType.Literal);
684 }
685
686 // Token: 0x0600186A RID: 6250 RVA: 0x00044AF4 File Offset: 0x00042CF4
687 private int FindPositionInRange(int startPosition, int endPosition, bool direction, MaskedTextProvider.CharType charTypeFlags)
688 {
689 int length = this._testString.Length;
690 int length2 = this._testString.Length;
691 int size = this._stringDescriptor._size;
692 return startPosition;
693 }
694
695 // Token: 0x0600186B RID: 6251 RVA: 0x00044B28 File Offset: 0x00042D28
696 public int FindUnassignedEditPositionFrom(int position, bool direction)
697 {
698 return this._testString.Length;
699 }
700
701 // Token: 0x0600186C RID: 6252 RVA: 0x00044B44 File Offset: 0x00042D44
702 public int FindUnassignedEditPositionInRange(int startPosition, int endPosition, bool direction)
703 {
704 long num = 0L;
705 int num2 = this.FindEditPositionInRange(startPosition, endPosition, direction, (byte)num);
706 int num5;
707 if (this._stringDescriptor._version != 0)
708 {
709 int num3 = 1;
710 long num4 = 0L;
711 num5 = this.FindEditPositionInRange(num2, endPosition, num3 != 0, (byte)num4);
712 return num5;
713 }
714 return num5;
715 }
716
717 // Token: 0x0600186D RID: 6253 RVA: 0x00002050 File Offset: 0x00000250
719 {
720 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
721 }
722
723 // Token: 0x0600186E RID: 6254 RVA: 0x00044B94 File Offset: 0x00042D94
724 public bool InsertAt(char input, int position)
725 {
726 int length = this._testString.Length;
727 bool flag;
728 return flag;
729 }
730
731 // Token: 0x0600186F RID: 6255 RVA: 0x00044BB0 File Offset: 0x00042DB0
732 public bool InsertAt(char input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
733 {
734 string text;
735 return this.InsertAt(text, position, testPosition, resultHint);
736 }
737
738 // Token: 0x06001870 RID: 6256 RVA: 0x00044BC8 File Offset: 0x00042DC8
739 public bool InsertAt(string input, int position)
740 {
741 bool flag;
742 return flag;
743 }
744
745 // Token: 0x06001871 RID: 6257 RVA: 0x00044BD8 File Offset: 0x00042DD8
746 public bool InsertAt(string input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
747 {
748 while (input == null)
749 {
750 }
751 int length = this._testString.Length;
752 long num = 0L;
753 return this.InsertAtInt(input, position, testPosition, resultHint, num != 0L);
754 }
755
756 // Token: 0x06001872 RID: 6258 RVA: 0x00044C0C File Offset: 0x00042E0C
757 private bool InsertAtInt(string input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint, bool testOnly)
758 {
759 /*
760An exception occurred when decompiling this method (06001872)
761
762ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.MaskedTextProvider::InsertAtInt(System.String,System.Int32,System.Int32,System.ComponentModel.MaskedTextResultHint,System.Boolean)
763
764 ---> System.Exception: Basic block has to end with unconditional control flow.
765{
766 IL_00F6:
767 call:void(MaskedTextProvider::ResetChar, ldloc:MaskedTextProvider(this), ldloc:int32(var_19))
768 call:void(MaskedTextProvider::SetString, ldloc:MaskedTextProvider(this), ldloc:string(input), ldloc:int32(position))
769 stfld:int32(MaskedTextResultHint::value__, ldloc:MaskedTextResultHint[exp:valuetype System.ComponentModel.MaskedTextResultHint&](resultHint), ldloc:int32(var_22_D7))
770 stfld:int32(MaskedTextResultHint::value__, ldloc:MaskedTextResultHint[exp:valuetype System.ComponentModel.MaskedTextResultHint&](resultHint), ldloc:int32(var_22_D7))
771 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](testPosition), ldloc:int32(var_24))
772}
773
774 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
775 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
776 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
777 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
778 --- End of inner exception stack trace ---
779 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
780 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
781*/;
782 }
783
784 // Token: 0x06001873 RID: 6259 RVA: 0x00002050 File Offset: 0x00000250
785 private static bool IsAscii(char c)
786 {
787 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
788 }
789
790 // Token: 0x06001874 RID: 6260 RVA: 0x00044D3C File Offset: 0x00042F3C
791 private static bool IsAciiAlphanumeric(char c)
792 {
793 }
794
795 // Token: 0x06001875 RID: 6261 RVA: 0x00044D4C File Offset: 0x00042F4C
796 private static bool IsAlphanumeric(char c)
797 {
798 if (!true)
799 {
800 }
801 return true;
802 }
803
804 // Token: 0x06001876 RID: 6262 RVA: 0x00044D64 File Offset: 0x00042F64
805 private static bool IsAsciiLetter(char c)
806 {
807 }
808
809 // Token: 0x06001877 RID: 6263 RVA: 0x00044D74 File Offset: 0x00042F74
810 public bool IsAvailablePosition(int position)
811 {
812 /*
813An exception occurred when decompiling this method (06001877)
814
815ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.MaskedTextProvider::IsAvailablePosition(System.Int32)
816
817 ---> System.Exception: Basic block has to end with unconditional control flow.
818{
819 Block_0:
820 stloc:int32(var_0_0B, callgetter:int32(StringBuilder::get_Length, ldfld:StringBuilder(MaskedTextProvider::_testString, ldloc:MaskedTextProvider(this))))
821 stloc:class [mscorlib]System.Collections.Generic.List`1<class System.ComponentModel.MaskedTextProvider/CharDescriptor>(var_1_12, ldfld:class [mscorlib]System.Collections.Generic.List`1<class System.ComponentModel.MaskedTextProvider/CharDescriptor>(MaskedTextProvider::_stringDescriptor, ldloc:MaskedTextProvider(this)))
822 stloc:int32(var_2_19, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<class System.ComponentModel.MaskedTextProvider/CharDescriptor>[exp:List`1](var_1_12)))
823 stloc:int32(var_3_20, ldfld:int32(List`1::_version, ldloc:class [mscorlib]System.Collections.Generic.List`1<class System.ComponentModel.MaskedTextProvider/CharDescriptor>[exp:List`1](var_1_12)))
824}
825
826 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
827 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
828 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
829 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
830 --- End of inner exception stack trace ---
831 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
832 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
833*/;
834 }
835
836 // Token: 0x06001878 RID: 6264 RVA: 0x00044DA4 File Offset: 0x00042FA4
837 public bool IsEditPosition(int position)
838 {
839 /*
840An exception occurred when decompiling this method (06001878)
841
842ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.MaskedTextProvider::IsEditPosition(System.Int32)
843
844 ---> System.Exception: Basic block has to end with unconditional control flow.
845{
846 Block_0:
847 stloc:int32(var_0_0B, callgetter:int32(StringBuilder::get_Length, ldfld:StringBuilder(MaskedTextProvider::_testString, ldloc:MaskedTextProvider(this))))
848 stloc:int32(var_1_17, ldfld:int32(List`1::_size, ldfld:class [mscorlib]System.Collections.Generic.List`1<class System.ComponentModel.MaskedTextProvider/CharDescriptor>[exp:List`1](MaskedTextProvider::_stringDescriptor, ldloc:MaskedTextProvider(this))))
849}
850
851 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
853 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
854 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
855 --- End of inner exception stack trace ---
856 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
857 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
858*/;
859 }
860
861 // Token: 0x06001879 RID: 6265 RVA: 0x00002050 File Offset: 0x00000250
863 {
864 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
865 }
866
867 // Token: 0x0600187A RID: 6266 RVA: 0x00002050 File Offset: 0x00000250
869 {
870 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
871 }
872
873 // Token: 0x0600187B RID: 6267 RVA: 0x00044DCC File Offset: 0x00042FCC
874 private static bool IsPrintableChar(char c)
875 {
876 if (!true)
877 {
878 }
879 if (!true)
880 {
881 }
882 return true;
883 }
884
885 // Token: 0x0600187C RID: 6268 RVA: 0x00044DE8 File Offset: 0x00042FE8
886 public static bool IsValidInputChar(char c)
887 {
888 if (!true)
889 {
890 }
891 bool flag;
892 return flag;
893 }
894
895 // Token: 0x0600187D RID: 6269 RVA: 0x00044DFC File Offset: 0x00042FFC
896 public static bool IsValidMaskChar(char c)
897 {
898 if (!true)
899 {
900 }
901 bool flag;
902 return flag;
903 }
904
905 // Token: 0x0600187E RID: 6270 RVA: 0x00044E10 File Offset: 0x00043010
906 public static bool IsValidPasswordChar(char c)
907 {
908 if (!true)
909 {
910 }
911 bool flag;
912 return flag;
913 }
914
915 // Token: 0x0600187F RID: 6271 RVA: 0x00044E24 File Offset: 0x00043024
916 public bool Remove()
917 {
919 this.ResetChar(lastAssignedPosition);
920 return true;
921 }
922
923 // Token: 0x06001880 RID: 6272 RVA: 0x00044E40 File Offset: 0x00043040
925 {
927 this.ResetChar(lastAssignedPosition);
928 long num = 0L;
929 testPosition.m_value = (int)num;
931 return true;
932 }
933
934 // Token: 0x06001881 RID: 6273 RVA: 0x00044E6C File Offset: 0x0004306C
935 public bool RemoveAt(int position)
936 {
937 bool flag;
938 return flag;
939 }
940
941 // Token: 0x06001882 RID: 6274 RVA: 0x00044E7C File Offset: 0x0004307C
942 public bool RemoveAt(int startPosition, int endPosition)
943 {
944 bool flag;
945 return flag;
946 }
947
948 // Token: 0x06001883 RID: 6275 RVA: 0x00044E8C File Offset: 0x0004308C
949 public bool RemoveAt(int startPosition, int endPosition, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
950 {
951 int length = this._testString.Length;
952 long num = 0L;
953 return this.RemoveAtInt(startPosition, endPosition, testPosition, resultHint, num != 0L);
954 }
955
956 // Token: 0x06001884 RID: 6276 RVA: 0x00044EC8 File Offset: 0x000430C8
957 private bool RemoveAtInt(int startPosition, int endPosition, [Out] int testPosition, [Out] MaskedTextResultHint resultHint, bool testOnly)
958 {
959 /*
960An exception occurred when decompiling this method (06001884)
961
962ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.MaskedTextProvider::RemoveAtInt(System.Int32,System.Int32,System.Int32,System.ComponentModel.MaskedTextResultHint,System.Boolean)
963
964 ---> System.Exception: Basic block has to end with unconditional control flow.
965{
966 IL_010F:
967 call:void(MaskedTextProvider::ResetString, ldloc:MaskedTextProvider(this), ldloc:int32(var_24), ldloc:int32(endPosition))
968}
969
970 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
971 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
972 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
973 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
974 --- End of inner exception stack trace ---
975 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
976 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
977*/;
978 }
979
980 // Token: 0x06001885 RID: 6277 RVA: 0x00044FF0 File Offset: 0x000431F0
981 public bool Replace(char input, int position)
982 {
983 bool flag;
984 return flag;
985 }
986
987 // Token: 0x06001886 RID: 6278 RVA: 0x00045000 File Offset: 0x00043200
988 public bool Replace(char input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
989 {
990 int length = this._testString.Length;
991 testPosition.m_value = position;
992 bool flag = this.TestEscapeChar(input, position);
993 int length2 = this._testString.Length;
994 int num;
996 return this.TestSetChar(input, num, resultHint);
997 }
998
999 // Token: 0x06001887 RID: 6279 RVA: 0x00045058 File Offset: 0x00043258
1000 public bool Replace(char input, int startPosition, int endPosition, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
1001 {
1002 int length = this._testString.Length;
1004 return this.TestSetChar(input, endPosition, resultHint);
1005 }
1006
1007 // Token: 0x06001888 RID: 6280 RVA: 0x0004509C File Offset: 0x0004329C
1008 public bool Replace(string input, int position)
1009 {
1010 bool flag;
1011 return flag;
1012 }
1013
1014 // Token: 0x06001889 RID: 6281 RVA: 0x000450AC File Offset: 0x000432AC
1015 public bool Replace(string input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
1016 {
1017 while (input == null)
1018 {
1019 }
1020 int length = this._testString.Length;
1021 int stringLength = input._stringLength;
1022 if (stringLength != 0)
1023 {
1024 return this.TestSetString(input, position, testPosition, resultHint);
1025 }
1026 return this.RemoveAt(position, position, testPosition, resultHint);
1027 }
1028
1029 // Token: 0x0600188A RID: 6282 RVA: 0x000450FC File Offset: 0x000432FC
1030 public bool Replace(string input, int startPosition, int endPosition, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
1031 {
1032 while (input == null)
1033 {
1034 }
1035 int length = this._testString.Length;
1036 if (input._stringLength != 0)
1037 {
1038 bool flag = this.TestString(input, startPosition, testPosition, resultHint);
1040 int num2 = 3;
1042 bool flag2;
1043 return flag2;
1044 }
1045 return this.RemoveAt(startPosition, endPosition, testPosition, resultHint);
1046 }
1047
1048 // Token: 0x0600188B RID: 6283 RVA: 0x000451EC File Offset: 0x000433EC
1049 private void ResetChar(int testPosition)
1050 {
1052 bool flag = this.IsEditPosition(testPosition);
1053 if (stringDescriptor._version != 0)
1054 {
1056 char promptChar = this._promptChar;
1057 testString[testPosition] = promptChar;
1059 this.<AssignedEditPositionCount>k__BackingField = num;
1060 int size = stringDescriptor._size;
1063 }
1064 }
1065
1066 // Token: 0x0600188C RID: 6284 RVA: 0x00045250 File Offset: 0x00043450
1067 private void ResetString(int startPosition, int endPosition)
1068 {
1069 int num = 1;
1070 int num2 = this.FindAssignedEditPositionFrom(startPosition, num != 0);
1072 {
1073 int num3 = 2;
1074 long num4 = 0L;
1075 long num5 = 0L;
1076 int num6 = this.FindEditPositionInRange((int)num4, endPosition, num5 != 0L, (byte)num3);
1077 return;
1078 }
1079 }
1080
1081 // Token: 0x0600188D RID: 6285 RVA: 0x0004529C File Offset: 0x0004349C
1082 public bool Set(string input)
1083 {
1084 bool flag;
1085 return flag;
1086 }
1087
1088 // Token: 0x0600188E RID: 6286 RVA: 0x000452AC File Offset: 0x000434AC
1089 public bool Set(string input, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
1090 {
1091 /*
1092An exception occurred when decompiling this method (0600188E)
1093
1094ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.MaskedTextProvider::Set(System.String,System.Int32,System.ComponentModel.MaskedTextResultHint)
1095
1096 ---> System.Exception: Basic block has to end with unconditional control flow.
1097{
1098 IL_002F:
1099 call:void(MaskedTextProvider::Clear, ldloc:MaskedTextProvider(this), ldloc:MaskedTextResultHint(resultHint))
1100}
1101
1102 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1103 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1104 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1105 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1106 --- End of inner exception stack trace ---
1107 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1108 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1109*/;
1110 }
1111
1112 // Token: 0x0600188F RID: 6287 RVA: 0x000452F4 File Offset: 0x000434F4
1113 private void SetChar(char input, int position)
1114 {
1116 }
1117
1118 // Token: 0x06001890 RID: 6288 RVA: 0x00045308 File Offset: 0x00043508
1120 {
1122 bool flag = this.TestEscapeChar(input, position, charDescriptor);
1123 this.ResetChar(position);
1124 }
1125
1126 // Token: 0x06001891 RID: 6289 RVA: 0x000453A4 File Offset: 0x000435A4
1127 private void SetString(string input, int testPosition)
1128 {
1129 int stringLength = input._stringLength;
1130 long num = 0L;
1131 char c = input[(int)num];
1132 bool flag = this.TestEscapeChar(c, testPosition);
1133 int length = this._testString.Length;
1134 int num2;
1135 this.SetChar(c, num2);
1136 int stringLength2 = input._stringLength;
1137 }
1138
1139 // Token: 0x06001892 RID: 6290 RVA: 0x00002050 File Offset: 0x00000250
1140 private bool TestChar(char input, int position, [Out] MaskedTextResultHint resultHint)
1141 {
1142 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1143 }
1144
1145 // Token: 0x06001893 RID: 6291 RVA: 0x000453EC File Offset: 0x000435EC
1146 private bool TestEscapeChar(char input, int position)
1147 {
1149 bool flag;
1150 return flag;
1151 }
1152
1153 // Token: 0x06001894 RID: 6292 RVA: 0x00045404 File Offset: 0x00043604
1155 {
1156 if (!true)
1157 {
1158 }
1160 bool skipLiterals = this.SkipLiterals;
1161 char c = this._testString[position];
1162 bool resetOnPrompt = this.ResetOnPrompt;
1163 char promptChar = this._promptChar;
1164 return true;
1165 }
1166
1167 // Token: 0x06001895 RID: 6293 RVA: 0x0004544C File Offset: 0x0004364C
1168 private bool TestSetChar(char input, int position, [Out] MaskedTextResultHint resultHint)
1169 {
1170 /*
1171An exception occurred when decompiling this method (06001895)
1172
1173ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.MaskedTextProvider::TestSetChar(System.Char,System.Int32,System.ComponentModel.MaskedTextResultHint)
1174
1175 ---> System.Exception: Basic block has to end with unconditional control flow.
1176{
1177 Block_0:
1178 stloc:bool(var_0_09, call:bool(MaskedTextProvider::TestChar, ldloc:MaskedTextProvider(this), ldloc:char(input), ldloc:int32(position), ldloc:MaskedTextResultHint(resultHint)))
1179 call:void(MaskedTextProvider::SetChar, ldloc:MaskedTextProvider(this), ldloc:char(input), ldloc:int32(position))
1180}
1181
1182 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1183 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1184 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1185 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1186 --- End of inner exception stack trace ---
1187 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1188 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1189*/;
1190 }
1191
1192 // Token: 0x06001896 RID: 6294 RVA: 0x00045470 File Offset: 0x00043670
1193 private bool TestSetString(string input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
1194 {
1195 bool flag = this.TestString(input, position, testPosition, resultHint);
1196 this.SetString(input, position);
1197 return true;
1198 }
1199
1200 // Token: 0x06001897 RID: 6295 RVA: 0x00045494 File Offset: 0x00043694
1201 private bool TestString(string input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
1202 {
1203 /*
1204An exception occurred when decompiling this method (06001897)
1205
1206ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.MaskedTextProvider::TestString(System.String,System.Int32,System.Int32,System.ComponentModel.MaskedTextResultHint)
1207
1208 ---> System.Exception: Basic block has to end with unconditional control flow.
1209{
1210 IL_005C:
1211 stloc:int32(var_12_70, callgetter:int32(StringBuilder::get_Length, ldfld:StringBuilder(MaskedTextProvider::_testString, ldloc:MaskedTextProvider(this))))
1212 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](testPosition), ldloc:int32(var_12_70))
1213 stfld:int32(MaskedTextResultHint::value__, ldloc:MaskedTextResultHint[exp:valuetype System.ComponentModel.MaskedTextResultHint&](resultHint), ldloc:int32(var_12_70))
1214}
1215
1216 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1217 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1218 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1219 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1220 --- End of inner exception stack trace ---
1221 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1222 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1223*/;
1224 }
1225
1226 // Token: 0x06001898 RID: 6296 RVA: 0x00045528 File Offset: 0x00043728
1227 public string ToDisplayString()
1228 {
1229 /*
1230An exception occurred when decompiling this method (06001898)
1231
1232ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.ComponentModel.MaskedTextProvider::ToDisplayString()
1233
1234 ---> System.Exception: Basic block has to end with unconditional control flow.
1235{
1236 Block_1:
1237 stloc:int32(var_6_11, callgetter:int32(StringBuilder::get_Length, ldloc:StringBuilder(var_5)))
1238}
1239
1240 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1241 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1242 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1243 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1244 --- End of inner exception stack trace ---
1245 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1246 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1247*/;
1248 }
1249
1250 // Token: 0x06001899 RID: 6297 RVA: 0x00045548 File Offset: 0x00043748
1251 public override string ToString()
1252 {
1253 bool includePrompt = this.IncludePrompt;
1254 bool includeLiterals = this.IncludeLiterals;
1255 int length = this._testString.Length;
1256 string text;
1257 return text;
1258 }
1259
1260 // Token: 0x0600189A RID: 6298 RVA: 0x00045570 File Offset: 0x00043770
1261 public string ToString(bool ignorePasswordChar)
1262 {
1263 bool includePrompt = this.IncludePrompt;
1264 bool includeLiterals = this.IncludeLiterals;
1265 int length = this._testString.Length;
1266 string text;
1267 return text;
1268 }
1269
1270 // Token: 0x0600189B RID: 6299 RVA: 0x00045598 File Offset: 0x00043798
1271 public string ToString(int startPosition, int length)
1272 {
1273 bool includePrompt = this.IncludePrompt;
1274 bool includeLiterals = this.IncludeLiterals;
1275 string text;
1276 return text;
1277 }
1278
1279 // Token: 0x0600189C RID: 6300 RVA: 0x000455B4 File Offset: 0x000437B4
1280 public string ToString(bool ignorePasswordChar, int startPosition, int length)
1281 {
1282 bool includePrompt = this.IncludePrompt;
1283 bool includeLiterals = this.IncludeLiterals;
1284 return this.ToString(ignorePasswordChar, startPosition != 0, length != 0, startPosition, length);
1285 }
1286
1287 // Token: 0x0600189D RID: 6301 RVA: 0x000455DC File Offset: 0x000437DC
1288 public string ToString(bool includePrompt, bool includeLiterals)
1289 {
1290 int length = this._testString.Length;
1291 string text;
1292 return text;
1293 }
1294
1295 // Token: 0x0600189E RID: 6302 RVA: 0x000455F8 File Offset: 0x000437F8
1296 public string ToString(bool includePrompt, bool includeLiterals, int startPosition, int length)
1297 {
1298 return this.ToString(true, includeLiterals, startPosition != 0, startPosition, length);
1299 }
1300
1301 // Token: 0x0600189F RID: 6303 RVA: 0x00045614 File Offset: 0x00043814
1302 public string ToString(bool ignorePasswordChar, bool includePrompt, bool includeLiterals, int startPosition, int length)
1303 {
1304 int length2 = this._testString.Length;
1305 int length3 = this._testString.Length;
1306 char passwordChar = this._passwordChar;
1307 return this._testString.ToString(startPosition, 43163648);
1308 }
1309
1310 // Token: 0x060018A0 RID: 6304 RVA: 0x000456B8 File Offset: 0x000438B8
1311 public bool VerifyChar(char input, int position, [Out] MaskedTextResultHint hint)
1312 {
1313 hint.value__ = 2;
1314 int length = this._testString.Length;
1315 return this.TestChar(input, position, hint);
1316 }
1317
1318 // Token: 0x060018A1 RID: 6305 RVA: 0x000456EC File Offset: 0x000438EC
1319 public bool VerifyEscapeChar(char input, int position)
1320 {
1321 int length = this._testString.Length;
1322 return this.TestEscapeChar(input, position);
1323 }
1324
1325 // Token: 0x060018A2 RID: 6306 RVA: 0x00045710 File Offset: 0x00043910
1326 public bool VerifyString(string input)
1327 {
1328 bool flag;
1329 return input == null || input._stringLength == 0 || flag;
1330 }
1331
1332 // Token: 0x060018A3 RID: 6307 RVA: 0x0004572C File Offset: 0x0004392C
1333 public bool VerifyString(string input, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
1334 {
1335 if (input != null && input._stringLength != 0)
1336 {
1337 long num = 0L;
1338 return this.TestString(input, (int)num, testPosition, resultHint);
1339 }
1341 return true;
1342 }
1343
1344 // Token: 0x060018A4 RID: 6308 RVA: 0x0004575C File Offset: 0x0004395C
1345 // Note: this type is marked as 'beforefieldinit'.
1347 {
1348 int num = global::System.Collections.Specialized.BitVector32.CreateMask(global::System.Collections.Specialized.BitVector32.CreateMask(global::System.Collections.Specialized.BitVector32.CreateMask(global::System.Collections.Specialized.BitVector32.CreateMask(global::System.Collections.Specialized.BitVector32.CreateMask(global::System.Collections.Specialized.BitVector32.CreateMask(global::System.Collections.Specialized.BitVector32.CreateMask()))))));
1349 }
1350
1351 // Token: 0x0400125B RID: 4699
1352 private const char SPACE_CHAR = ' ';
1353
1354 // Token: 0x0400125C RID: 4700
1355 private const char DEFAULT_PROMPT_CHAR = '_';
1356
1357 // Token: 0x0400125D RID: 4701
1358 private const char NULL_PASSWORD_CHAR = '\0';
1359
1360 // Token: 0x0400125E RID: 4702
1361 private const bool DEFAULT_ALLOW_PROMPT = true;
1362
1363 // Token: 0x0400125F RID: 4703
1364 private const int INVALID_INDEX = -1;
1365
1366 // Token: 0x04001260 RID: 4704
1367 private const byte EDIT_ANY = 0;
1368
1369 // Token: 0x04001261 RID: 4705
1370 private const byte EDIT_UNASSIGNED = 1;
1371
1372 // Token: 0x04001262 RID: 4706
1373 private const byte EDIT_ASSIGNED = 2;
1374
1375 // Token: 0x04001263 RID: 4707
1376 private const bool FORWARD = true;
1377
1378 // Token: 0x04001264 RID: 4708
1379 private const bool BACKWARD = false;
1380
1381 // Token: 0x04001265 RID: 4709
1382 private static int s_ASCII_ONLY;
1383
1384 // Token: 0x04001266 RID: 4710
1385 private static int s_ALLOW_PROMPT_AS_INPUT;
1386
1387 // Token: 0x04001267 RID: 4711
1388 private static int s_INCLUDE_PROMPT;
1389
1390 // Token: 0x04001268 RID: 4712
1391 private static int s_INCLUDE_LITERALS;
1392
1393 // Token: 0x04001269 RID: 4713
1394 private static int s_RESET_ON_PROMPT;
1395
1396 // Token: 0x0400126A RID: 4714
1397 private static int s_RESET_ON_LITERALS;
1398
1399 // Token: 0x0400126B RID: 4715
1400 private static int s_SKIP_SPACE;
1401
1402 // Token: 0x0400126C RID: 4716
1404
1405 // Token: 0x0400126D RID: 4717
1406 private global::System.Collections.Specialized.BitVector32 _flagState;
1407
1408 // Token: 0x0400126E RID: 4718
1410
1411 // Token: 0x0400126F RID: 4719
1413
1414 // Token: 0x04001270 RID: 4720
1416
1417 // Token: 0x04001271 RID: 4721
1419
1420 // Token: 0x04001272 RID: 4722
1421 private char _passwordChar;
1422
1423 // Token: 0x04001273 RID: 4723
1424 private char _promptChar;
1425
1426 // Token: 0x04001274 RID: 4724
1428
1429 // Token: 0x04001275 RID: 4725
1431 private int <AssignedEditPositionCount>k__BackingField;
1432
1433 // Token: 0x04001276 RID: 4726
1435 private readonly CultureInfo <Culture>k__BackingField;
1436
1437 // Token: 0x04001277 RID: 4727
1439 private readonly string <Mask>k__BackingField;
1440
1441 // Token: 0x020003A3 RID: 931
1442 private enum CaseConversion
1443 {
1444 // Token: 0x04001279 RID: 4729
1445 None,
1446 // Token: 0x0400127A RID: 4730
1447 ToLower,
1448 // Token: 0x0400127B RID: 4731
1449 ToUpper
1450 }
1451
1452 // Token: 0x020003A4 RID: 932
1453 [Flags]
1454 private enum CharType
1455 {
1456 // Token: 0x0400127D RID: 4733
1457 EditOptional = 1,
1458 // Token: 0x0400127E RID: 4734
1459 EditRequired = 2,
1460 // Token: 0x0400127F RID: 4735
1461 Separator = 4,
1462 // Token: 0x04001280 RID: 4736
1463 Literal = 8,
1464 // Token: 0x04001281 RID: 4737
1465 Modifier = 16
1466 }
1467
1468 // Token: 0x020003A5 RID: 933
1469 private class CharDescriptor
1470 {
1471 // Token: 0x060018A5 RID: 6309 RVA: 0x00045790 File Offset: 0x00043990
1477
1478 // Token: 0x060018A6 RID: 6310 RVA: 0x000457B4 File Offset: 0x000439B4
1479 public override string ToString()
1480 {
1481 if (!true)
1482 {
1483 }
1485 int maskPosition = this.MaskPosition;
1488 bool isAssigned = this.IsAssigned;
1489 string text;
1490 return text;
1491 }
1492
1493 // Token: 0x04001282 RID: 4738
1494 public int MaskPosition;
1495
1496 // Token: 0x04001283 RID: 4739
1498
1499 // Token: 0x04001284 RID: 4740
1501
1502 // Token: 0x04001285 RID: 4741
1503 public bool IsAssigned;
1504 }
1505 }
1506}
class f__AnonymousType0<< Count > j__TPar
static readonly long
CharDescriptor(int maskPos, MaskedTextProvider.CharType charType)
MaskedTextProvider(string mask, CultureInfo culture, bool restrictToAscii)
bool Replace(char input, int position)
bool Add(string input, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
MaskedTextProvider(string mask, bool restrictToAscii)
bool RemoveAt(int startPosition, int endPosition, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
void SetString(string input, int testPosition)
bool VerifyEscapeChar(char input, int position)
MaskedTextProvider(string mask, CultureInfo culture, bool allowPromptAsInput, char promptChar, char passwordChar, bool restrictToAscii)
bool TestSetChar(char input, int position, [Out] MaskedTextResultHint resultHint)
int FindAssignedEditPositionFrom(int position, bool direction)
bool InsertAt(char input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
static bool GetOperationResultFromHint(MaskedTextResultHint hint)
bool RemoveAt(int startPosition, int endPosition)
int FindEditPositionInRange(int startPosition, int endPosition, bool direction, byte assignedStatus)
bool Replace(string input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
bool Replace(char input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
global::System.Collections.Specialized.BitVector32 _flagState
MaskedTextProvider(string mask, CultureInfo culture)
int FindUnassignedEditPositionFrom(int position, bool direction)
bool TestString(string input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
bool InsertAtInt(string input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint, bool testOnly)
bool InsertAt(string input, int position)
string ToString(bool ignorePasswordChar, int startPosition, int length)
bool Set(string input, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
bool TestEscapeChar(char input, int position, MaskedTextProvider.CharDescriptor charDex)
bool VerifyChar(char input, int position, [Out] MaskedTextResultHint hint)
int FindPositionInRange(int startPosition, int endPosition, bool direction, MaskedTextProvider.CharType charTypeFlags)
bool Remove([Out] int testPosition, [Out] MaskedTextResultHint resultHint)
void SetChar(char input, int position, MaskedTextProvider.CharDescriptor charDescriptor)
bool Replace(string input, int position)
bool Replace(string input, int startPosition, int endPosition, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
bool TestChar(char input, int position, [Out] MaskedTextResultHint resultHint)
MaskedTextProvider(string mask, CultureInfo culture, char passwordChar, bool allowPromptAsInput)
bool TestEscapeChar(char input, int position)
static bool IsLiteralPosition(MaskedTextProvider.CharDescriptor charDescriptor)
int FindEditPositionInRange(int startPosition, int endPosition, bool direction)
readonly CultureInfo< Culture > k__BackingField
bool Replace(char input, int startPosition, int endPosition, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
void Clear([Out] MaskedTextResultHint resultHint)
bool InsertAt(char input, int position)
static bool IsEditPosition(MaskedTextProvider.CharDescriptor charDescriptor)
bool InsertAt(string input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
void ResetString(int startPosition, int endPosition)
bool VerifyString(string input, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
string ToString(bool ignorePasswordChar)
bool RemoveAtInt(int startPosition, int endPosition, [Out] int testPosition, [Out] MaskedTextResultHint resultHint, bool testOnly)
string ToString(bool ignorePasswordChar, bool includePrompt, bool includeLiterals, int startPosition, int length)
string ToString(bool includePrompt, bool includeLiterals, int startPosition, int length)
bool TestSetString(string input, int position, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
int< AssignedEditPositionCount > k__BackingField
int FindAssignedEditPositionInRange(int startPosition, int endPosition, bool direction)
string ToString(int startPosition, int length)
List< MaskedTextProvider.CharDescriptor > _stringDescriptor
MaskedTextProvider(string mask, char passwordChar, bool allowPromptAsInput)
string ToString(bool includePrompt, bool includeLiterals)
int FindNonEditPositionFrom(int position, bool direction)
int FindNonEditPositionInRange(int startPosition, int endPosition, bool direction)
int FindEditPositionFrom(int position, bool direction)
bool Add(char input, [Out] int testPosition, [Out] MaskedTextResultHint resultHint)
int FindUnassignedEditPositionInRange(int startPosition, int endPosition, bool direction)
static CultureInfo CurrentCulture
static CultureInfo InvariantCulture
override string ToString()
new Type GetType()
Definition Type.cs:287