Commit 193184f1 authored by Jeremy Tammik's avatar Jeremy Tammik

locally disable warning CS0618 is obsolete for one specific use case

parent f2b4a7ca
......@@ -154,6 +154,7 @@ using System.Reflection;
// 2020-10-20 2021.0.0.6 eliminated deprecated unit api usage
// 2020-11-09 2021.0.0.7 integrated pull request #64 by @peterhirn to update CI for Revit 2021
// 2020-12-04 2021.0.0.8 integrated pull request #66 by @RevitArkitek adding handlers for View GetTemplateParameterIds and GetNonControlledTemplateParameterIds
// 2020-12-06 2021.0.0.9 locally disable warning CS0618 `DisplayUnitType` is obsolete for one specific use case
//
[assembly: AssemblyVersion( "2021.0.0.8" )]
[assembly: AssemblyFileVersion( "2021.0.0.8" )]
......@@ -141,6 +141,7 @@ namespace RevitLookup.Snoop.CollectorExts
&& (field.ValueType == typeof( XYZ )
|| field.ValueType == typeof( double )) )
{
#pragma warning disable CS0618
// warning CS0618: `DisplayUnitType` is obsolete:
// This enumeration is deprecated in Revit 2021 and may be removed in a future version of Revit.
// Please use the `ForgeTypeId` class instead.
......@@ -154,6 +155,8 @@ namespace RevitLookup.Snoop.CollectorExts
&& (p2.ParameterType == typeof( DisplayUnitType )
|| p2.ParameterType == typeof( ForgeTypeId ));
}
#pragma warning restore CS0618
}
return parameters.Length == 1 && parameters.Single().ParameterType == typeof( Field );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment