Platform TypePlatforms Are Compatible Method
This can be used to determine if the given set of platform types are compatible with each other for
documentation purposes.
Definition
Namespace: Sandcastle.Core.Reflection
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
True if they are compatible, false if not
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
C#
public static bool PlatformsAreCompatible(
IEnumerable<(string platform, Version version)> platforms
)VB
Public Shared Function PlatformsAreCompatible (
platforms As IEnumerable(Of (platform As String, version As Version))
) As BooleanC++
public:
static bool PlatformsAreCompatible(
IEnumerable<ValueTuple<String^, Version^>>^ platforms
)F#
static member PlatformsAreCompatible :
platforms : IEnumerable<ValueTuple<string, Version>> -> bool Parameters
- platforms IEnumerableValueTupleString, Version
- An enumerable list of platform types
Return Value
BooleanTrue if they are compatible, false if not
Remarks
In general, platforms that have all of their types in mscorlib or netstandard are compatible
but you can't mix both. All platforms that redirect their types to System.Runtime and other
assemblies are also typically compatible. Mixing the sets or any combination of other frameworks
is not compatible.