diff --git a/源代码/.vs/ProjectEvaluation/stgsharp.metadata.v5.1 b/源代码/.vs/ProjectEvaluation/stgsharp.metadata.v5.1 index 8bdf08cd..313c6d16 100644 Binary files a/源代码/.vs/ProjectEvaluation/stgsharp.metadata.v5.1 and b/源代码/.vs/ProjectEvaluation/stgsharp.metadata.v5.1 differ diff --git a/源代码/.vs/ProjectEvaluation/stgsharp.projects.v5.1 b/源代码/.vs/ProjectEvaluation/stgsharp.projects.v5.1 index a804a45d..43bd8f37 100644 Binary files a/源代码/.vs/ProjectEvaluation/stgsharp.projects.v5.1 and b/源代码/.vs/ProjectEvaluation/stgsharp.projects.v5.1 differ diff --git a/源代码/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2 b/源代码/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2 index ee262d51..1adfd0aa 100644 Binary files a/源代码/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2 and b/源代码/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2 differ diff --git a/源代码/.vs/StgSharp/FileContentIndex/0cf8bb34-6cad-4d15-9f31-6f5f7f94f9db.vsidx b/源代码/.vs/StgSharp/FileContentIndex/0cf8bb34-6cad-4d15-9f31-6f5f7f94f9db.vsidx deleted file mode 100644 index 82d55034..00000000 Binary files a/源代码/.vs/StgSharp/FileContentIndex/0cf8bb34-6cad-4d15-9f31-6f5f7f94f9db.vsidx and /dev/null differ diff --git a/源代码/.vs/StgSharp/FileContentIndex/2db6498c-3a55-4f2e-8dcf-ee4e8e64396d.vsidx b/源代码/.vs/StgSharp/FileContentIndex/598630cc-739c-46a4-a3f2-84075c11650f.vsidx similarity index 94% rename from 源代码/.vs/StgSharp/FileContentIndex/2db6498c-3a55-4f2e-8dcf-ee4e8e64396d.vsidx rename to 源代码/.vs/StgSharp/FileContentIndex/598630cc-739c-46a4-a3f2-84075c11650f.vsidx index 0c5acd2a..842e6985 100644 Binary files a/源代码/.vs/StgSharp/FileContentIndex/2db6498c-3a55-4f2e-8dcf-ee4e8e64396d.vsidx and b/源代码/.vs/StgSharp/FileContentIndex/598630cc-739c-46a4-a3f2-84075c11650f.vsidx differ diff --git a/源代码/.vs/StgSharp/FileContentIndex/991cb7ce-5b86-4836-87ce-1c32dd4ac64b.vsidx b/源代码/.vs/StgSharp/FileContentIndex/991cb7ce-5b86-4836-87ce-1c32dd4ac64b.vsidx deleted file mode 100644 index e0c50754..00000000 Binary files a/源代码/.vs/StgSharp/FileContentIndex/991cb7ce-5b86-4836-87ce-1c32dd4ac64b.vsidx and /dev/null differ diff --git a/源代码/.vs/StgSharp/FileContentIndex/e5ec125d-43fb-4159-b068-6813146b3dcf.vsidx b/源代码/.vs/StgSharp/FileContentIndex/ad98a0f2-da41-4b0b-948b-e4f1241bc9af.vsidx similarity index 96% rename from 源代码/.vs/StgSharp/FileContentIndex/e5ec125d-43fb-4159-b068-6813146b3dcf.vsidx rename to 源代码/.vs/StgSharp/FileContentIndex/ad98a0f2-da41-4b0b-948b-e4f1241bc9af.vsidx index 5649ae41..ffc811e3 100644 Binary files a/源代码/.vs/StgSharp/FileContentIndex/e5ec125d-43fb-4159-b068-6813146b3dcf.vsidx and b/源代码/.vs/StgSharp/FileContentIndex/ad98a0f2-da41-4b0b-948b-e4f1241bc9af.vsidx differ diff --git a/源代码/.vs/StgSharp/FileContentIndex/c3b26d70-3743-4efa-a807-04711ef7dda6.vsidx b/源代码/.vs/StgSharp/FileContentIndex/c3b26d70-3743-4efa-a807-04711ef7dda6.vsidx new file mode 100644 index 00000000..544b1f07 Binary files /dev/null and b/源代码/.vs/StgSharp/FileContentIndex/c3b26d70-3743-4efa-a807-04711ef7dda6.vsidx differ diff --git a/源代码/.vs/StgSharp/FileContentIndex/e212dbf7-b401-4659-aaf8-3137dae7d134.vsidx b/源代码/.vs/StgSharp/FileContentIndex/e212dbf7-b401-4659-aaf8-3137dae7d134.vsidx new file mode 100644 index 00000000..447c42e0 Binary files /dev/null and b/源代码/.vs/StgSharp/FileContentIndex/e212dbf7-b401-4659-aaf8-3137dae7d134.vsidx differ diff --git a/源代码/.vs/StgSharp/v17/.futdcache.v2 b/源代码/.vs/StgSharp/v17/.futdcache.v2 index e5f91ffb..ce93d190 100644 Binary files a/源代码/.vs/StgSharp/v17/.futdcache.v2 and b/源代码/.vs/StgSharp/v17/.futdcache.v2 differ diff --git a/源代码/.vs/StgSharp/v17/.suo b/源代码/.vs/StgSharp/v17/.suo index 97738eb3..7f603850 100644 Binary files a/源代码/.vs/StgSharp/v17/.suo and b/源代码/.vs/StgSharp/v17/.suo differ diff --git a/源代码/.vs/StgSharp/v17/Browse.VC.db b/源代码/.vs/StgSharp/v17/Browse.VC.db index 1672ef53..6a43a67d 100644 Binary files a/源代码/.vs/StgSharp/v17/Browse.VC.db and b/源代码/.vs/StgSharp/v17/Browse.VC.db differ diff --git a/源代码/StgSharp/Logic/LinkedList.cs b/源代码/StgSharp/Logic/LinkedList.cs index 40cd5fe7..db0c84bf 100644 --- a/源代码/StgSharp/Logic/LinkedList.cs +++ b/源代码/StgSharp/Logic/LinkedList.cs @@ -109,14 +109,20 @@ namespace StgSharp internal LinkedListNode Find(T value) { - foreach (LinkedListNode node in this) + LinkedListNode enumerator = this._hook; + do { - if (node._value.Equals(value)) - { - return node; - } + enumerator = enumerator._next; + Console.WriteLine(enumerator.Value.ToString()); + } while (!enumerator.Value.Equals(value) + || enumerator == _hook); + + if (enumerator == _hook) + { + throw new Exception(); } - throw new Exception("Value not found in this LinkedList"); + + return enumerator; } public void Clear() diff --git a/源代码/StgSharp/Math/Scalar/Sin.cs b/源代码/StgSharp/Math/Scalar/Sin.cs index 0f2a309a..0eca0b49 100644 --- a/源代码/StgSharp/Math/Scalar/Sin.cs +++ b/源代码/StgSharp/Math/Scalar/Sin.cs @@ -1,7 +1,11 @@ -namespace StgSharp.Math +using System.Net.NetworkInformation; + +namespace StgSharp.Math { public static partial class Calc { + public const float Pi = 3.1415926f; + private static readonly float[] sinData = { 0f, 0.15643446239373f, 0.309016989278255f, 0.453990492577218f, 0.587785243621462f, diff --git a/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll b/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll index caf7874f..b7becd20 100644 Binary files a/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll and b/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll differ diff --git a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll index caf7874f..b7becd20 100644 Binary files a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll and b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll differ diff --git a/源代码/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll b/源代码/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll index ef366fc4..ab71adb1 100644 Binary files a/源代码/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll and b/源代码/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll differ diff --git a/源代码/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll b/源代码/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll index ef366fc4..ab71adb1 100644 Binary files a/源代码/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll and b/源代码/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll differ diff --git a/源代码/StgSharpDebug/Debug.cs b/源代码/StgSharpDebug/Debug.cs index a76d81bf..3c610e56 100644 --- a/源代码/StgSharpDebug/Debug.cs +++ b/源代码/StgSharpDebug/Debug.cs @@ -20,10 +20,10 @@ namespace StgSharp list.Add(str); } - foreach (string str in list) - { - Console.WriteLine(str); - } + string a = "sdfsdfdsfds"; + list.Add(a); + + list.Remove(a); /* Form f2 = new Form(); diff --git a/源代码/StgSharpDebug/bin/x64/Debug/net6.0/StgSharpDebug.dll b/源代码/StgSharpDebug/bin/x64/Debug/net6.0/StgSharpDebug.dll index b4fbc9d7..2d098448 100644 Binary files a/源代码/StgSharpDebug/bin/x64/Debug/net6.0/StgSharpDebug.dll and b/源代码/StgSharpDebug/bin/x64/Debug/net6.0/StgSharpDebug.dll differ diff --git a/源代码/StgSharpDebug/obj/x64/Debug/net6.0/StgSharpDebug.dll b/源代码/StgSharpDebug/obj/x64/Debug/net6.0/StgSharpDebug.dll index b4fbc9d7..2d098448 100644 Binary files a/源代码/StgSharpDebug/obj/x64/Debug/net6.0/StgSharpDebug.dll and b/源代码/StgSharpDebug/obj/x64/Debug/net6.0/StgSharpDebug.dll differ diff --git a/源代码/StgSharpDebug/obj/x64/Debug/net6.0/ref/StgSharpDebug.dll b/源代码/StgSharpDebug/obj/x64/Debug/net6.0/ref/StgSharpDebug.dll index 2f406c44..d7a59142 100644 Binary files a/源代码/StgSharpDebug/obj/x64/Debug/net6.0/ref/StgSharpDebug.dll and b/源代码/StgSharpDebug/obj/x64/Debug/net6.0/ref/StgSharpDebug.dll differ diff --git a/源代码/StgSharpDebug/obj/x64/Debug/net6.0/refint/StgSharpDebug.dll b/源代码/StgSharpDebug/obj/x64/Debug/net6.0/refint/StgSharpDebug.dll index 2f406c44..d7a59142 100644 Binary files a/源代码/StgSharpDebug/obj/x64/Debug/net6.0/refint/StgSharpDebug.dll and b/源代码/StgSharpDebug/obj/x64/Debug/net6.0/refint/StgSharpDebug.dll differ