1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections.Generic;
7
namespace ICSharpCode.SharpDevelop.Dom
9
/// <summary>The type of the 'null'/'nothing' literal.</summary>
10
public sealed class NullReturnType : AbstractReturnType
12
private NullReturnType() {}
14
public static readonly NullReturnType Instance = new NullReturnType();
16
public override bool Equals(IReturnType o)
18
return o is NullReturnType;
21
public override int GetHashCode()
26
public override bool IsDefaultReturnType {
32
public override IClass GetUnderlyingClass() { return null; }
33
public override List<IMethod> GetMethods() { return new List<IMethod>(); }
34
public override List<IProperty> GetProperties() { return new List<IProperty>(); }
35
public override List<IField> GetFields() { return new List<IField>(); }
36
public override List<IEvent> GetEvents() { return new List<IEvent>(); }