mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
refactor(functional): 统一功能模块命名空间格式
- 将 GFramework.Core.Functional 命名空间统一改为 GFramework.Core.functional - 更新 AsyncFunctionalExtensions.cs 中的命名空间声明 - 移除不必要的 using 指令,包括 GFramework.Core.Functional 的导入 - 调整测试文件中的命名空间引用以匹配新的命名空间格式 - 确保所有相关文件都使用一致的小写命名空间约定
This commit is contained in:
parent
e391bab1ee
commit
aa13760748
@ -1,6 +1,6 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using GFramework.Core.extensions;
|
using GFramework.Core.extensions;
|
||||||
using GFramework.Core.Functional.Async;
|
using GFramework.Core.functional.async;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace GFramework.Core.Tests.extensions;
|
namespace GFramework.Core.Tests.extensions;
|
||||||
|
|||||||
@ -11,11 +11,11 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
using GFramework.Core.Functional;
|
using GFramework.Core.functional;
|
||||||
using GFramework.Core.functional.result;
|
using GFramework.Core.functional.result;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace GFramework.Core.Tests.Extensions;
|
namespace GFramework.Core.Tests.extensions;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ResultExtensions 扩展方法测试类
|
/// ResultExtensions 扩展方法测试类
|
||||||
|
|||||||
@ -11,10 +11,10 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
using GFramework.Core.Functional;
|
using GFramework.Core.functional;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace GFramework.Core.Tests.Functional;
|
namespace GFramework.Core.Tests.functional;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Option<T> 类型测试类
|
/// Option<T> 类型测试类
|
||||||
|
|||||||
@ -11,10 +11,10 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
using GFramework.Core.Functional;
|
using GFramework.Core.functional;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace GFramework.Core.Tests.Functional;
|
namespace GFramework.Core.Tests.functional;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Result<A> 泛型类型测试类
|
/// Result<A> 泛型类型测试类
|
||||||
|
|||||||
@ -11,10 +11,10 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
using GFramework.Core.Functional;
|
using GFramework.Core.functional;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace GFramework.Core.Tests.Functional;
|
namespace GFramework.Core.Tests.functional;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Result 类型测试类
|
/// Result 类型测试类
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
namespace GFramework.Core.Functional;
|
namespace GFramework.Core.functional;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 表示可能存在或不存在的值,用于替代 null 引用的函数式编程类型
|
/// 表示可能存在或不存在的值,用于替代 null 引用的函数式编程类型
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
using System.Diagnostics.Contracts;
|
using System.Diagnostics.Contracts;
|
||||||
|
|
||||||
namespace GFramework.Core.Functional;
|
namespace GFramework.Core.functional;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 表示一个操作的结果,可能是成功值或异常
|
/// 表示一个操作的结果,可能是成功值或异常
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
using System.Diagnostics.Contracts;
|
using System.Diagnostics.Contracts;
|
||||||
|
|
||||||
namespace GFramework.Core.Functional;
|
namespace GFramework.Core.functional;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 表示一个无值的操作结果,仅包含成功或失败状态
|
/// 表示一个无值的操作结果,仅包含成功或失败状态
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
namespace GFramework.Core.Functional.Async;
|
namespace GFramework.Core.functional.async;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 异步函数式编程扩展方法
|
/// 异步函数式编程扩展方法
|
||||||
|
|||||||
@ -12,7 +12,6 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using GFramework.Core.Functional;
|
|
||||||
|
|
||||||
namespace GFramework.Core.functional.functions;
|
namespace GFramework.Core.functional.functions;
|
||||||
|
|
||||||
|
|||||||
@ -12,8 +12,6 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
using GFramework.Core.Functional;
|
|
||||||
|
|
||||||
namespace GFramework.Core.functional.result;
|
namespace GFramework.Core.functional.result;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user