|
|
|
@ -129,6 +129,7 @@ namespace CSharpBinding.Completion
@@ -129,6 +129,7 @@ namespace CSharpBinding.Completion
|
|
|
|
|
|
|
|
|
|
foreach (var f in sourceType.GetFields().Where(field => !field.IsConst |
|
|
|
|
&& field.IsStatic == sourceType.GetDefinition().IsStatic |
|
|
|
|
&& field.DeclaringType.FullName == sourceType.FullName |
|
|
|
|
&& field.ReturnType != null)) { |
|
|
|
|
yield return new PropertyOrFieldWrapper(f) { Index = i }; |
|
|
|
|
i++; |
|
|
|
@ -137,6 +138,7 @@ namespace CSharpBinding.Completion
@@ -137,6 +138,7 @@ namespace CSharpBinding.Completion
|
|
|
|
|
foreach (var p in sourceType.GetProperties().Where(prop => prop.CanGet && !prop.IsIndexer |
|
|
|
|
&& prop.IsAutoImplemented() |
|
|
|
|
&& prop.IsStatic == sourceType.GetDefinition().IsStatic |
|
|
|
|
&& prop.DeclaringType.FullName == sourceType.FullName |
|
|
|
|
&& prop.ReturnType != null)) { |
|
|
|
|
yield return new PropertyOrFieldWrapper(p) { Index = i }; |
|
|
|
|
i++; |
|
|
|
|