From 9933813e578d12a259939b94ec19e92adf6d05a7 Mon Sep 17 00:00:00 2001 From: Elivo Date: Thu, 24 Apr 2025 16:32:49 +0800 Subject: [PATCH] =?UTF-8?q?Class=EF=BC=9A=E5=8E=BB=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Apewer/Class.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Apewer/Class.cs b/Apewer/Class.cs index 44fd601..545a004 100644 --- a/Apewer/Class.cs +++ b/Apewer/Class.cs @@ -125,17 +125,9 @@ namespace Apewer #region 运算符。 /// 到 Boolean 的隐式转换,判断 包含值。 - /// 当 T 是 Boolean 时,获取 Value。
当 T 是 String 时,判断 Value 不为 NULL 且不为空。
public static implicit operator bool(Class instance) { if (instance == null) return false; - - // var boolean = instance as Class; - // if (boolean != null) return boolean.Value; - - // var text = instance as Class; - // if (text != null) return !string.IsNullOrEmpty(text.Value); - return true; }