ICSharpCode.NRefactory.MonoCSharp.Struct.Struct C# (CSharp) Method

Struct() public method

public Struct ( TypeContainer parent, MemberName name, Modifiers mod, Attributes attrs ) : System
parent TypeContainer
name MemberName
mod Modifiers
attrs Attributes
return System
		public Struct (TypeContainer parent, MemberName name, Modifiers mod, Attributes attrs)
			: base (parent, name, attrs, MemberKind.Struct)
		{
			var accmods = IsTopLevel ? Modifiers.INTERNAL : Modifiers.PRIVATE;			
			this.ModFlags = ModifiersExtensions.Check (AllowedModifiers, mod, accmods, Location, Report) | Modifiers.SEALED ;
			spec = new TypeSpec (Kind, null, this, null, ModFlags);
		}