private void SetField(BuilderInfo info) { _handler.Using(info.Type); var destInfo = _destType.GetField(info.MemberName); if (destInfo != null && !destInfo.IsInitOnly) { if (destInfo.FieldType == info.Type || info.Type.IsSubclassOf(destInfo.FieldType) || info.Type.IsImplementFrom(destInfo.FieldType)) { _script.AppendLine($"{DEST}.{destInfo.Name}={SRC}.{destInfo.Name};"); } } }