1 write to Version
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Value.cs (1)
29Version = version ?? throw new ArgumentNullException(nameof(version));
22 references to Version
Microsoft.CodeAnalysis.NetAnalyzers (22)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (16)
505attribute.UnsupportedFirst.IsGreaterThanOrEqualTo(info.Version)) 536attribute.UnsupportedSecond.IsGreaterThanOrEqualTo(info.Version)) 542attribute.Obsoleted.IsGreaterThanOrEqualTo(info.Version)) 549if (!IsEmptyVersion(info.Version)) 551capturedVersions[info.PlatformName] = info.Version; 578info.Version.IsGreaterThanOrEqualTo(checkVersion)) 582RemoveUnsupportedWithLessVersion(info.Version, attribute); 662parentValue.Version.IsGreaterThanOrEqualTo(version.SupportedFirst); 682if (version.SupportedFirst != info.Version) 687if (version.UnsupportedFirst != info.Version) 727attributes.SupportedFirst = info.Version; 731attributes.SupportedSecond = info.Version; 738csAttributes.Add(info.PlatformName, new Versions() { SupportedFirst = info.Version, UnsupportedFirst = unsupportedVersion }); 752attributes.UnsupportedFirst = info.Version; 756attributes.UnsupportedSecond = info.Version; 761csAttributes.Add(info.PlatformName, new Versions() { UnsupportedFirst = info.Version });
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.OperationVisitor.cs (1)
198version = infosBuilder[i].Version;
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Value.cs (5)
38=> new PlatformMethodValue(PlatformName, Version, !Negated); 153var result = $"{PlatformName};{Version}"; 164Version.Equals(other.Version) && 174Version.GetHashCode(),