Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
R
RevitLookup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Build Informed Public
RevitLookup
Commits
193184f1
Commit
193184f1
authored
Dec 06, 2020
by
Jeremy Tammik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
locally disable warning CS0618 is obsolete for one specific use case
parent
f2b4a7ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
CS/AssemblyInfo.cs
CS/AssemblyInfo.cs
+1
-0
CS/Snoop/CollectorExts/ExtensibleStorageEntityContentStream.cs
...oop/CollectorExts/ExtensibleStorageEntityContentStream.cs
+3
-0
No files found.
CS/AssemblyInfo.cs
View file @
193184f1
...
...
@@ -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"
)]
CS/Snoop/CollectorExts/ExtensibleStorageEntityContentStream.cs
View file @
193184f1
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment