PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Target­Framework­Family Structure

TargetFrameworkFamily Structure

Represents a variant of family (variant) of the .NET Framework, e.g. NetCore, NetFramework, Silverlight or NetPortable.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public struct TargetFrameworkFamily : IEquatable<TargetFrameworkFamily>

The TargetFrameworkFamily type exposes the following members.

Properties
  NameDescription
Public propertyIsNull
Determines whether the current object represents a null instance.
Public propertyValue
Gets the string identity of the current object.
Methods
  NameDescription
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object).)
Public methodEquals(String)
Public methodEquals(TargetFrameworkFamily)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode().)
Public methodToString (Overrides ValueType.ToString().)
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two TargetFrameworkFamily instances are equal.
Public operatorStatic memberInequality
Determines whether two TargetFrameworkFamily instances are different.
Fields
  NameDescription
Public fieldStatic memberMonoAndroid
Instance of TargetFrameworkFamily representing MonoAndroid.
Public fieldStatic memberMonoTouch
Instance of TargetFrameworkFamily representing MonoTouch.
Public fieldStatic memberNetCore
Instance of TargetFrameworkFamily representing .NET Core and .NET Framework for Windows Store.
Public fieldStatic memberNETCoreApp
Instance of TargetFrameworkFamily representing .NET Core Framework (.NETCoreApp,v1.0).
Public fieldStatic memberNetFramework
Instance of TargetFrameworkFamily representing the full .NET Framework.
Public fieldStatic memberNetPortable
Instance of TargetFrameworkFamily representing .NET Portable Class Library.
Public fieldStatic memberNetStandard
Instance of TargetFrameworkFamily representing .NET Standard Class Library.
Public fieldStatic memberSilverlight
Instance of TargetFrameworkFamily representing Silverlight.
Public fieldStatic memberWindowsPhone
Instance of TargetFrameworkFamily representing Windows Phone (Silverlight).
Public fieldStatic memberXamarin_iOS
Instance of TargetFrameworkFamily representing Xamarin.iOS.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also