Neos.IdentityServer 3.0/Neos.IdentityServer.QrCodeNet/Versions/QRCodeVersion.cs
/// <summary>
/// Get Error Correction Blocks by level
/// </summary>
//[method
Get Error Correction Blocks by level
Get Error Correction Blocks by level
internal ErrorCorrectionBlocks GetECBlocksByLevel(Neos.IdentityServer.MultiFactor.QrEncoding.ErrorCorrectionLevel ECLevel)
		{
			switch(ECLevel)
			{
				case ErrorCorrectionLevel.L:
					return m_ECBlocks[0];
				case ErrorCorrectionLevel.M:
					return m_ECBlocks[1];
				case ErrorCorrectionLevel.Q:
					return m_ECBlocks[2];
				case ErrorCorrectionLevel.H:
					return m_ECBlocks[3];
				default:
					throw new System.ArgumentOutOfRangeException("Invalide ErrorCorrectionLevel");
			}
		}
internal ErrorCorrectionBlocks GetECBlocksByLevel ( Neos . IdentityServer . MultiFactor . QrEncoding . ErrorCorrectionLevel ECLevel ) { switch ( ECLevel ) { case ErrorCorrectionLevel . L : return m_ECBlocks [ 0 ] ; case ErrorCorrectionLevel . M : return m_ECBlocks [ 1 ] ; case ErrorCorrectionLevel . Q : return m_ECBlocks [ 2 ] ; case ErrorCorrectionLevel . H : return m_ECBlocks [ 3 ] ; default : throw new System . ArgumentOutOfRangeException ( " " ) ; } }
Get Error Correction Blocks by level
Get Error Correction Blocks by level
ECLevel
Neos.IdentityServer.MultiFactor.QrEncoding.ErrorCorrectionLevel