C#' null.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ±èÀçȲ

    #1

    C#' null.

    what's the mean this article..please

    null == ldnull(MSIL)

    /*
    Rationale: It might be thought that ldnull is redundant: why not use
    ldc.i4.0 or ldc.i8.0 instead? The answer is that ldnull provides a
    size-agnostic null -analogous to a ldc.i instruction, which does not exist.
    However, even if CIL were to include a ldc.i instruction it would still
    benefit verification algorithms to retain the ldnull instruction because it
    makes type tracking easier.
    */

    and, what is the size-agnostic null???


  • Jon Davis

    #2
    Re: C#' null.

    These are references to IL codes. Try the CLR group:
    news://msnews.microsoft.com/microsof....framework.clr

    Jon


    "±èÀçȲ" <jhwang2u@chol. com> wrote in message
    news:Oyl4TdgTDH A.2480@tk2msftn gp13.phx.gbl...[color=blue]
    > what's the mean this article..please
    >
    > null == ldnull(MSIL)
    >
    > /*
    > Rationale: It might be thought that ldnull is redundant: why not use
    > ldc.i4.0 or ldc.i8.0 instead? The answer is that ldnull provides a
    > size-agnostic null -analogous to a ldc.i instruction, which does not[/color]
    exist.[color=blue]
    > However, even if CIL were to include a ldc.i instruction it would still
    > benefit verification algorithms to retain the ldnull instruction because[/color]
    it[color=blue]
    > makes type tracking easier.
    > */
    >
    > and, what is the size-agnostic null???
    >
    >[/color]


    Comment

    Working...