tests/DotNetCommon.Test/Extensions/GetClassMethodFullNameTests.cs
(开头部分) 94KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using DotNetCommon.Extensions;
using NUnit.Framework;
using Shouldly;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
#region 模型 GetClassFullName & GetClassGenericFullName
namespace DemoNameSpace
{
public class Outer
{
public class Middle
{
public class Inner { }
}
}
public enum DemoEnum { }
public struct DemoStruct { }
public delegate void DemoDelegate();
public interface DemoInterface { }
namespace Generic
{
public class Outer<TOuter1, TOuter2>
{
public class Middle<TMiddle>
{
public class Inner<TInner1, TInner2> { }
}
}
}
}
#endregion
#region 模型方法 GetMethodFullName & GetMethodGenericFullName
namespace DemoMethod
{
public class NormalClass
{
//普通方法
public static void NormalMethod1() { }
public void NormalMethod2() { }
public string NormalMethod3(int i, double? d) => throw new NotImplementedException();
public List<string> NormalMethod4(Dictionary<string, byte> dic, List<NormalClass> classes) => throw new NotImplementedException();
public (string name, int age) NormalMethod5(List<(string i, int a)> values, NormalClass normalClass, IDictionary<string, int> dic) => throw new NotImplementedException();
//泛型方法
public static string GenericMethod1<T>(T t, int age, NormalClass normalClass) => throw new NotImplementedException();
public T2 GenericMethod2<T1, T2, T3>(T1 t1, T2 t2, T3 t3) => throw new NotImplementedException();
public (T2, T3) GenericMethod3<T1, T2, T3>(T1 t1, T2 t2, T3 t3) => throw new NotImplementedException();
public List<(T2, T1)> GenericMethod4<T1, T2>(T1 t1, T2 t2, (T1, T2) no, List<T1> li, Dictionary<T2, List<T2>> dic) => throw new NotImplementedException();
}
public class Outer
{
public class Middle
后面还有 1296 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
