Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 4de173f

Browse files
committed
DeclaringType never returns null
1 parent 10ace0b commit 4de173f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/CreatePropertiesDialog.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ PropertyDeclaration CreateProperty(IField field, bool createGetter, bool createS
257257
public static Modifiers ConvertModifier(Modifiers modifiers, ITypeDefinition targetContext)
258258
{
259259
IProject project = targetContext.ParentAssembly.GetProject();
260-
if (targetContext != null && project != null && targetContext.DeclaringType != null) {
260+
if (targetContext != null && project != null && targetContext.DeclaringTypeDefinition != null) {
261261
// if (project.LanguageBinding.IsClassWithImplicitlyStaticMembers(targetContext.CallingClass)) {
262262
return modifiers & ~Modifiers.Static;
263263
// }

0 commit comments

Comments
 (0)