Show / Hide Table of Contents

Class SpdxLicense

Represents a license registered within the Software Package Data Exchange (SPDX) standards.

Inheritance
object
License
SpdxLicense
Implements
INameable
IEquatable<SpdxLicense>
Inherited Members
License.MissingLicense
License.NoLicense
License.Unspecified
License.Name
License.LicenseUri
License.LicenseContent
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Resources
Assembly: MCART.dll
Syntax
public class SpdxLicense : License, INameable, IEquatable<SpdxLicense>

Properties

| Edit this page View Source

SpdxShortName

Gets the short identifier of the license.

Declaration
public string SpdxShortName { get; }
Property Value
Type Description
string

Methods

| Edit this page View Source

Equals(object?)

Determines whether the specified object is equal to the current object.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj

The object to compare with the current object.

Returns
Type Description
bool

true if the specified object is equal to the current object; otherwise, false.

Overrides
object.Equals(object)
| Edit this page View Source

Equals(SpdxLicense)

Checks equality between two instances of the SpdxLicense class.

Declaration
public bool Equals(SpdxLicense other)
Parameters
Type Name Description
SpdxLicense other

The other object to compare.

Returns
Type Description
bool

true if both instances are considered equal, false otherwise.

| Edit this page View Source

FromId(SpdxLicenseId)

Gets an instance of SpdxLicense that represents a license with the specified id.

Declaration
public static SpdxLicense FromId(SpdxLicenseId id)
Parameters
Type Name Description
SpdxLicenseId id

Id of the license to get.

Returns
Type Description
SpdxLicense

An instance of the SpdxLicense class that represents a license with the specified id.

| Edit this page View Source

FromName(string)

Gets an instance of SpdxLicense that represents a license with the specified name.

Declaration
public static SpdxLicense FromName(string name)
Parameters
Type Name Description
string name

Name of the license to get.

Returns
Type Description
SpdxLicense

An instance of the SpdxLicense class that represents a license with the specified name.

| Edit this page View Source

GetHashCode()

Serves as the default hash function.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
object.GetHashCode()

Implements

INameable
IEquatable<T>

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX