Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Skip()

int System.Runtime.InteropServices.CustomMarshalers.EnumVariantViewOfEnumerator.Skip ( int celt)
inline

Implements System.Runtime.InteropServices.ComTypes.IEnumVARIANT.

Definition at line 70 of file EnumVariantViewOfEnumerator.cs.

71 {
72 try
73 {
74 while (celt > 0 && Enumerator.MoveNext())
75 {
76 celt--;
77 }
78 }
79 catch (Exception ex)
80 {
81 return ex.HResult;
82 }
83 if (celt != 0)
84 {
85 return 1;
86 }
87 return 0;
88 }

References System.Runtime.InteropServices.CustomMarshalers.EnumVariantViewOfEnumerator.Enumerator, and System.Exception.HResult.