如何直接用我自己的班级获得大的价值? [英] How can get biginteger value directly with my own class?

查看:89
本文介绍了如何直接用我自己的班级获得大的价值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建我的biginteger类。但我无法直接获得我的重要价值。我该怎么办?



图片链接: big - imgbb.com [ ^ ]



< b>我尝试了什么:



I want create my biginteger class. But i can't get my biginteger value directly. What can i do?

image link :big — imgbb.com[^]

What I have tried:

Imports System.Numerics

Public Class myBig

    Private Property _Biginteger As BigInteger

    Public Property Biginteger
        Get
            Return _Biginteger
        End Get
        Set(value)
            _Biginteger = value
        End Set
    End Property

    Public Sub New(Bytes As Byte())
        Biginteger = New BigInteger(Bytes)
    End Sub

End Class

推荐答案

Biginteger属性是myBig类的一部分:要访问它,你需要使用属性的名称:

The Biginteger property is part of your myBig class: To access it, you need to use the name of the property:
Dim Big2 As New myBig(Bytes)
Dim bi As BigInteger = Big2.Biginteger

要在调试器中查看它,请单击变量名左侧的小箭头。

To view it in the debugger, click the little arrow to the left of the variable name.


这篇关于如何直接用我自己的班级获得大的价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆