Skip to content

[API Proposal]: Obsolete Assembly property IsFullyTrusted #107205

Open
@elinor-fung

Description

@elinor-fung

Background and motivation

In .NET, IsFullyTrusted has no meaning and always returns true.

API Proposal

namespace System.Reflection;

public abstract class Assembly
{
+   [Obsolete("Assembly.IsFullyTrusted has been deprecated and is not supported.", DiagnosticId= /*SYSLIB...*/)]
    public bool IsFullyTrusted { get; }
}

API Usage

var assembly = Assembly.Load(...);
Console.WriteLine(assembly.IsFullyTrusted); // always true

Alternative Designs

No response

Risks

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-suggestionEarly API idea and discussion, it is NOT ready for implementationarea-System.Reflectiondesign-discussionOngoing discussion about design without consensus

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions