Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Support types with embedded references? #99

@tobinchan

Description

@tobinchan

I use ILMerge with System.Memory.dll, and inside it the type Span<T> was merged out to be marked with Obsolete:

    [DebuggerDisplay("{ToString(),raw}")]
    [DebuggerDisplay("{ToString(),raw}")]
    [DebuggerTypeProxy(typeof(System.SpanDebugView<>))]
    [DebuggerTypeProxy(typeof(System.SpanDebugView<>))]
    [DefaultMember("Item")]
    [Obsolete("Types with embedded references are not supported in this version of your compiler.", true)]
    [System.Memory.IsByRefLikeAttribute]
    [System.Memory.IsReadOnlyAttribute]
    public struct Span<T> { ... }

Origin type is:

    [DebuggerDisplay("{ToString(),raw}")]
    [DebuggerDisplay("{ToString(),raw}")]
    [DebuggerTypeProxy(typeof(System.SpanDebugView<>))]
    [DebuggerTypeProxy(typeof(System.SpanDebugView<>))]
    [DefaultMember("Item")]
    public readonly ref struct Span<T> { ... }

Build error:

error CS0619: 'Span<T>' is obsolete: 'Types with embedded references are not supported in this version of your compiler.'

Can you help me work around this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions