Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
main
Branches (3)
Tags (5)
main
3.6
master
v3.4.2
v3.4.1
v3.4.0
v3.4.0-beta1
v3.4.0-alpha1
main
Branches (3)
Tags (5)
main
3.6
master
v3.4.2
v3.4.1
v3.4.0
v3.4.0-beta1
v3.4.0-alpha1
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
main
Branches (3)
Tags (5)
main
3.6
master
v3.4.2
v3.4.1
v3.4.0
v3.4.0-beta1
v3.4.0-alpha1
DeTest.cs 6.88 KB
Copy Edit Raw Blame History
Your Name authored 2025年01月21日 05:13 +08:00 . Move and rename folders
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
using System;
namespace IronPythonTest {
public enum DeTestEnum {
Value_0,
Value_1,
Value_2,
Value_3,
Value_4
}
public enum DeTestEnumLong : long {
Value_1 = 12345678901234L,
Value_2 = 43210987654321L
}
public struct DeTestStruct {
public int intVal;
//public string stringVal;
//public float floatVal;
//public double doubleVal;
//public DeTestEnum eshort;
//public DeTestEnumLong elong;
#pragma warning disable 169
private void Init() {
intVal = 0;
//stringVal = "Hello";
//floatVal = 0;
//doubleVal = 0;
//eshort = DeTestEnum.Value_3;
//elong = DeTestEnumLong.Value_2;
}
#pragma warning restore 169
}
public class DeTest {
public delegate DeTestStruct TestStruct(DeTestStruct dts);
public delegate string TestTrivial(string s1);
public delegate string TestStringDelegate(string s1, string s2, string s3, string s4, string s5, string s6);
public delegate int TestEnumDelegate(DeTestEnum e);
public delegate long TestEnumDelegateLong(DeTestEnumLong e);
public delegate string TestComplexDelegate(string s, int i, float f, double d, DeTestEnum e, string s2, DeTestEnum e2, DeTestEnumLong e3);
public event TestStruct e_struct;
public event TestTrivial e_tt;
public event TestTrivial e_tt2;
public event TestStringDelegate e_tsd;
public event TestEnumDelegate e_ted;
public event TestComplexDelegate e_tcd;
public event TestEnumDelegateLong e_tedl;
public TestStruct d_struct;
public TestTrivial d_tt;
public TestTrivial d_tt2;
public TestStringDelegate d_tsd;
public TestEnumDelegate d_ted;
public TestComplexDelegate d_tcd;
public TestEnumDelegateLong d_tedl;
public string stringVal;
public string stringVal2;
public int intVal;
public float floatVal;
public double doubleVal;
public DeTestEnum enumVal;
public DeTestEnumLong longEnumVal;
public DeTest() {
}
public void Init() {
e_struct = ActualTestStruct;
e_tt = VoidTestTrivial;
e_tsd = VoidTestString;
e_ted = VoidTestEnum;
e_tedl = VoidTestEnumLong;
e_tcd = VoidTestComplex;
e_struct = ActualTestStruct;
d_tt = VoidTestTrivial;
d_tsd = VoidTestString;
d_ted = VoidTestEnum;
d_tedl = VoidTestEnumLong;
d_tcd = VoidTestComplex;
}
public void RunTest() {
if (e_struct != null) {
DeTestStruct dts;
dts.intVal = intVal;
//dts.stringVal = stringVal;
//dts.floatVal = floatVal;
//dts.doubleVal = doubleVal;
//dts.elong = longEnumVal;
//dts.eshort = enumVal;
e_struct(dts);
}
e_tt?.Invoke(stringVal);
e_tt2?.Invoke(stringVal2);
d_tt?.Invoke(stringVal);
e_tsd?.Invoke(stringVal, stringVal2, stringVal, stringVal2, stringVal, stringVal2);
d_tsd?.Invoke(stringVal, stringVal2, stringVal, stringVal2, stringVal, stringVal2);
e_ted?.Invoke(enumVal);
d_ted?.Invoke(enumVal);
e_tedl?.Invoke(longEnumVal);
d_tedl?.Invoke(longEnumVal);
e_tcd?.Invoke(stringVal, intVal, floatVal, doubleVal, enumVal, stringVal2, enumVal, longEnumVal);
d_tcd?.Invoke(stringVal, intVal, floatVal, doubleVal, enumVal, stringVal2, enumVal, longEnumVal);
}
public DeTestStruct ActualTestStruct(DeTestStruct dts) {
object x = dts;
return (DeTestStruct)x;
}
public string ActualTestTrivial(string s1) {
return s1;
}
public string VoidTestTrivial(string s1) {
return String.Empty;
}
public string ActualTestString(string s1, string s2, string s3, string s4, string s5, string s6) {
return s1 + " " + s2 + " " + s3 + " " + s4 + " " + s5 + " " + s6;
}
public string VoidTestString(string s1, string s2, string s3, string s4, string s5, string s6) {
return String.Empty;
}
public int ActualTestEnum(DeTestEnum e) {
return (int)e + 1000;
}
public int VoidTestEnum(DeTestEnum e) {
return 0;
}
public long ActualTestEnumLong(DeTestEnumLong e) {
return (long)e + 1000000000;
}
public long VoidTestEnumLong(DeTestEnumLong e) {
return 0;
}
public string ActualTestComplex(string s, int i, float f, double d, DeTestEnum e, string s2, DeTestEnum e2, DeTestEnumLong e3) {
return s + " " + i.ToString() + " " + f.ToString() + " " + d.ToString() + " " + s2 + " " + e2.ToString() + " " + e3.ToString();
}
public string VoidTestComplex(string s, int i, float f, double d, DeTestEnum e, string s2, DeTestEnum e2, DeTestEnumLong e3) {
return String.Empty;
}
public void SetupE() {
e_tt = ActualTestTrivial;
e_tt2 = ActualTestTrivial;
e_tsd = ActualTestString;
e_ted = ActualTestEnum;
e_tedl = ActualTestEnumLong;
e_tcd = ActualTestComplex;
}
public void SetupS() {
e_struct += ActualTestStruct;
e_struct += ActualTestStruct;
}
public void SetupD() {
d_tt = ActualTestTrivial;
d_tt2 = ActualTestTrivial;
d_tsd = ActualTestString;
d_ted = ActualTestEnum;
d_tedl = ActualTestEnumLong;
d_tcd = ActualTestComplex;
}
public void Setup() {
SetupE();
SetupD();
}
public static DeTestStruct staticDeTestStruct(object o, DeTestStruct dts) {
object oo = dts;
return (DeTestStruct)oo;
}
public static void Test() {
DeTest dt = new DeTest();
dt.SetupS();
dt.RunTest();
}
}
public delegate float FloatDelegate(float f);
public class ReturnTypes {
public event FloatDelegate floatEvent;
public float RunFloat(float f) {
return floatEvent(f);
}
}
public delegate void VoidDelegate();
public class SimpleType {
public event VoidDelegate SimpleEvent;
public void RaiseEvent() {
if (SimpleEvent != null)
SimpleEvent();
}
}
}
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/MicroDistanceStudio/ironpython3.git
git@gitee.com:MicroDistanceStudio/ironpython3.git
MicroDistanceStudio
ironpython3
ironpython3
main
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /