本文整理汇总了C#中Lte.Domain.Common.BitArrayInputStream.Dispose方法的典型用法代码示例。如果您正苦于以下问题:C# BitArrayInputStream.Dispose方法的具体用法?C# BitArrayInputStream.Dispose怎么用?C# BitArrayInputStream.Dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lte.Domain.Common.BitArrayInputStream
的用法示例。
在下文中一共展示了BitArrayInputStream.Dispose方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ParseAsn
public object ParseAsn()
{
object obj2 = null;
if (MessageContents != null)
{
return MessageContents;
}
if (L3MessageContents == null)
{
return null;
}
BitArrayInputStream input = new BitArrayInputStream(new MemoryStream(L3MessageContents));
try
{
switch (_AsnType.MsgDepend)
{
case "BCCH_BCH_Message":
obj2 = BCCH_BCH_Message.PerDecoder.Instance.Decode(input);
goto Label_0199;
case "BCCH_DL_SCH_Message":
obj2 = BCCH_DL_SCH_Message.PerDecoder.Instance.Decode(input);
goto Label_0199;
case "MCCH_Message":
obj2 = MCCH_Message.PerDecoder.Instance.Decode(input);
goto Label_0199;
case "DL_CCCH_Message":
obj2 = DL_CCCH_Message.PerDecoder.Instance.Decode(input);
goto Label_0199;
case "DL_DCCH_Message":
obj2 = DL_DCCH_Message.PerDecoder.Instance.Decode(input);
goto Label_0199;
case "UL_CCCH_Message":
obj2 = UL_CCCH_Message.PerDecoder.Instance.Decode(input);
goto Label_0199;
case "UL_DCCH_Message":
obj2 = UL_DCCH_Message.PerDecoder.Instance.Decode(input);
goto Label_0199;
case "X2AP_PDU":
obj2 = X2AP_PDU.PerDecoder.Instance.Decode(input);
goto Label_0199;
case "S1AP_PDU":
obj2 = S1AP_PDU.PerDecoder.Instance.Decode(input);
goto Label_0199;
}
}
catch (Exception exception)
{
Console.WriteLine(exception);
}
finally
{
input.Dispose();
}
Label_0199:
MessageContents = obj2;
return obj2;
}