From 5041bb56009c62dcaec71a8060b6ad8d2d1dddf7 Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Thu, 31 Jul 2025 15:41:31 +0800 Subject: [PATCH] Update Architecture.cs --- Convention/[Runtime]/Architecture.cs | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/Convention/[Runtime]/Architecture.cs b/Convention/[Runtime]/Architecture.cs index d4a1768..db18479 100644 --- a/Convention/[Runtime]/Architecture.cs +++ b/Convention/[Runtime]/Architecture.cs @@ -120,26 +120,6 @@ namespace Convention public static class Architecture { - public static string FormatType(Type type) - { - return type.Assembly + "::" + type.FullName; - } - - public static Type LoadFromFormat(string data) - { - var keys = data.Split("::"); - Assembly asm = null; - try - { - asm = Assembly.LoadFrom(keys[0]); - return asm.GetType(keys[1]); - } - catch - { - return null; - } - } - public static Type LoadFromFormat(string data, out Exception exception) { exception = null; @@ -227,7 +207,7 @@ namespace Convention public string Save() { - return $"{FormatType(registerSlot)}[{ConvertTo()}]"; + throw new InvalidOperationException($"Cannt use {nameof(Registering)} to save type"); } }