X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Security.AccessControl%2FRawAcl.cs;h=1986b1a8a78f379693165507683fa4df81038daa;hb=371a1f12a9c0ce20aae7034afeb293321c3952bd;hp=b3b07f50d626b606d768b05ff8aff9c7b54baa71;hpb=6110fc90713ce59ff0996fcd3520e09a96575820;p=mono.git diff --git a/mcs/class/corlib/System.Security.AccessControl/RawAcl.cs b/mcs/class/corlib/System.Security.AccessControl/RawAcl.cs index b3b07f50d62..1986b1a8a78 100644 --- a/mcs/class/corlib/System.Security.AccessControl/RawAcl.cs +++ b/mcs/class/corlib/System.Security.AccessControl/RawAcl.cs @@ -1,10 +1,11 @@ // // System.Security.AccessControl.RawAcl implementation // -// Author: +// Authors: // Dick Porter +// Atsushi Enomoto // -// Copyright (C) 2006 Novell, Inc (http://www.novell.com) +// Copyright (C) 2006-2007 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -27,18 +28,26 @@ // #if NET_2_0 +using System.Collections.Generic; namespace System.Security.AccessControl { public sealed class RawAcl : GenericAcl { public RawAcl (byte revision, int capacity) { + this.revision = revision; + list = new List (capacity); } - public RawAcl (byte[] binaryForm, int offset) + public RawAcl (byte [] binaryForm, int offset) + : this (0, 10) { } - + + byte revision; + List list; + + [MonoTODO] public override int BinaryLength { get { @@ -46,30 +55,21 @@ namespace System.Security.AccessControl { } } - public override int Count - { - get { - throw new NotImplementedException (); - } + public override int Count { + get { return list.Count; } } - public override GenericAce this[int index] + public override GenericAce this [int index] { - get { - throw new NotImplementedException (); - } - set { - throw new NotImplementedException (); - } + get { return list [index]; } + set { list [index] = value; } } - public override byte Revision - { - get { - throw new NotImplementedException (); - } + public override byte Revision { + get { return revision; } } - + + [MonoTODO] public override void GetBinaryForm (byte[] binaryForm, int offset) { @@ -78,12 +78,14 @@ namespace System.Security.AccessControl { public void InsertAce (int index, GenericAce ace) { - throw new NotImplementedException (); + if (ace == null) + throw new ArgumentNullException ("ace"); + list.Insert (index, ace); } public void RemoveAce (int index) { - throw new NotImplementedException (); + list.RemoveAt (index); } } }