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