CanvasCommon.CnvTypeExtensions.ToAltId C# (CSharp) 메소드

ToAltId() 공개 정적인 메소드

public static ToAltId ( this cnvType ) : string
cnvType this
리턴 string
        public static string ToAltId(this CnvType cnvType)
        {
            switch (cnvType)
            {
                case CnvType.Gain:
                case CnvType.Loss:
                case CnvType.LossOfHeterozygosity:
                    return "<CNV>";
                case CnvType.Reference:
                    return ".";
                default:
                    throw new ApplicationException($"ALT is unsupported for CNV type: {cnvType}");
            }
        }
    }