Daily update on 20251020-041041 by Nitload Youmu. Additional Message : Code cleanup and new design of parallel (maybe THE THENTH VERSION? Tough work!).

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-10-20 04:10:41 +08:00
parent 1927f4fdf3
commit 547ba80a01
141 changed files with 5475 additions and 6175 deletions
+43 -48
View File
@@ -1,33 +1,30 @@
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// file="IExpConvertableFrom.cs"
// Project: StgSharp
// AuthorGroup: Nitload Space
// Copyright (c) Nitload Space. All rights reserved.
// -----------------------------------------------------------------------
// file="IExpConvertableFrom"
// Project: StgSharp
// AuthorGroup: Nitload Space
// Copyright (c) Nitload Space. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the “Software”), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software,
// and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
// The above copyright notice and
// this permission notice shall be included in all copies
// or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED “AS IS”,
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
// ARISING FROM, OUT OF OR IN CONNECTION WITH
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
@@ -40,30 +37,28 @@ namespace StgSharp.Script.Express
public interface IExpConvertableFrom<T0> where T0: IExpConvertableFrom<T0>
{
void FromInstance( T0 entity );
void FromInstance(T0 entity);
bool IsConvertableTo( string entityTypeName );
bool IsConvertableTo(string entityTypeName);
}
// 2 generic parameters
public interface IExpConvertableFrom<T0, T1> : IExpConvertableFrom<T0>
where T0: IExpConvertableFrom<T0>
public interface IExpConvertableFrom<T0, T1> : IExpConvertableFrom<T0> where T0: IExpConvertableFrom<T0>
where T1: IExpConvertableFrom<T1>
{
void FromInstance( T1 entity );
void FromInstance(T1 entity);
}
// 3 generic parameters
public interface IExpConvertableFrom<T0, T1, T2> : IExpConvertableFrom<T0, T1>
where T0: IExpConvertableFrom<T0>
public interface IExpConvertableFrom<T0, T1, T2> : IExpConvertableFrom<T0, T1> where T0: IExpConvertableFrom<T0>
where T1: IExpConvertableFrom<T1>
where T2: IExpConvertableFrom<T2>
{
void FromInstance( T2 entity );
void FromInstance(T2 entity);
}
@@ -75,7 +70,7 @@ namespace StgSharp.Script.Express
where T3: IExpConvertableFrom<T3>
{
void FromInstance( T3 entity );
void FromInstance(T3 entity);
}
@@ -88,7 +83,7 @@ namespace StgSharp.Script.Express
where T4: IExpConvertableFrom<T4>
{
void FromInstance( T4 entity );
void FromInstance(T4 entity);
}
@@ -102,7 +97,7 @@ namespace StgSharp.Script.Express
where T5: IExpConvertableFrom<T5>
{
void FromInstance( T5 entity );
void FromInstance(T5 entity);
}
@@ -117,7 +112,7 @@ namespace StgSharp.Script.Express
where T6: IExpConvertableFrom<T6>
{
void FromInstance( T6 entity );
void FromInstance(T6 entity);
}
@@ -133,7 +128,7 @@ namespace StgSharp.Script.Express
where T7: IExpConvertableFrom<T7>
{
void FromInstance( T7 entity );
void FromInstance(T7 entity);
}
@@ -150,7 +145,7 @@ namespace StgSharp.Script.Express
where T8: IExpConvertableFrom<T8>
{
void FromInstance( T8 entity );
void FromInstance(T8 entity);
}
@@ -168,7 +163,7 @@ namespace StgSharp.Script.Express
where T9: IExpConvertableFrom<T9>
{
void FromInstance( T9 entity );
void FromInstance(T9 entity);
}
@@ -187,7 +182,7 @@ namespace StgSharp.Script.Express
where T10: IExpConvertableFrom<T10>
{
void FromInstance( T10 entity );
void FromInstance(T10 entity);
}
@@ -207,7 +202,7 @@ namespace StgSharp.Script.Express
where T11: IExpConvertableFrom<T11>
{
void FromInstance( T11 entity );
void FromInstance(T11 entity);
}
@@ -228,7 +223,7 @@ namespace StgSharp.Script.Express
where T12: IExpConvertableFrom<T12>
{
void FromInstance( T12 entity );
void FromInstance(T12 entity);
}
@@ -250,7 +245,7 @@ namespace StgSharp.Script.Express
where T13: IExpConvertableFrom<T13>
{
void FromInstance( T13 entity );
void FromInstance(T13 entity);
}
@@ -273,7 +268,7 @@ namespace StgSharp.Script.Express
where T14: IExpConvertableFrom<T14>
{
void FromInstance( T14 entity );
void FromInstance(T14 entity);
}
@@ -297,7 +292,7 @@ namespace StgSharp.Script.Express
where T15: IExpConvertableFrom<T15>
{
void FromInstance( T15 entity );
void FromInstance(T15 entity);
}
}