Castle.Facilities.NHibernateIntegration.Util.FieldInfoCollection.ReadOnly C# (CSharp) Method

ReadOnly() public static method

Returns a read-only wrapper for the specified FieldInfoCollection.
Please refer to ArrayList.ReadOnly(IList) for details.
/// is a null reference.
public static ReadOnly ( FieldInfoCollection collection ) : FieldInfoCollection
collection FieldInfoCollection /// The to wrap.
return FieldInfoCollection
		public static FieldInfoCollection ReadOnly(FieldInfoCollection collection)
		{
			if (collection == null)
				throw new ArgumentNullException("collection");

			return new ReadOnlyWrapper(collection._data);
		}