NSoft.NFramework.Tools.TypeTool.IsCloneableType C# (CSharp) Method

IsCloneableType() public static method

지정된 수형이 ICloneable 인터페이스를 상속하여 Clone() 함수를 제공하는 지 여부를 판단한다.
public static IsCloneableType ( this type, bool &isValueType ) : bool
type this
isValueType bool Value 타입인지를
return bool
        public static bool IsCloneableType(this Type type, out bool isValueType) {
            isValueType = false;

            if(type.IsValueType) {
                isValueType = true;
                return true;
            }

            return typeof(ICloneable).IsAssignableFrom(type);
        }
#endif