You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.1 KiB
44 lines
1.1 KiB
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) |
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) |
|
|
|
using System; |
|
using ICSharpCode.SharpDevelop.Dom; |
|
|
|
namespace ICSharpCode.PackageManagement.EnvDTE |
|
{ |
|
public class CodeClass2 : CodeClass |
|
{ |
|
public CodeClass2(IProjectContent projectContent, IClass c) |
|
: base(projectContent, c) |
|
{ |
|
} |
|
|
|
public CodeElements PartialClasses { |
|
get { return new PartialClasses(this); } |
|
} |
|
|
|
public static CodeClass2 CreateFromBaseType(IProjectContent projectContent, IReturnType baseType) |
|
{ |
|
IClass baseTypeClass = baseType.GetUnderlyingClass(); |
|
return new CodeClass2(projectContent, baseTypeClass); |
|
} |
|
|
|
public bool IsGeneric { |
|
get { return Class.DotNetName.Contains("`"); } |
|
} |
|
|
|
public vsCMClassKind ClassKind { |
|
get { |
|
if (Class.IsPartial) { |
|
return vsCMClassKind.vsCMClassKindPartialClass; |
|
} |
|
return vsCMClassKind.vsCMClassKindMainClass; |
|
} |
|
set { throw new NotImplementedException(); } |
|
} |
|
|
|
public bool IsAbstract { |
|
get { return Class.IsAbstract; } |
|
} |
|
} |
|
}
|
|
|