/********************************************************************
* FulcrumWeb RAD Framework - Fulcrum of your business *
* Copyright (c) 2002-2009 FulcrumWeb, ALL RIGHTS RESERVED *
* *
* THE SOURCE CODE CONTAINED WITHIN THIS FILE AND ALL RELATED *
* FILES OR ANY PORTION OF ITS CONTENTS SHALL AT NO TIME BE *
* COPIED, TRANSFERRED, SOLD, DISTRIBUTED, OR OTHERWISE MADE *
* AVAILABLE TO OTHER INDIVIDUALS WITHOUT EXPRESS WRITTEN CONSENT *
* AND PERMISSION FROM FULCRUMWEB. CONSULT THE END USER LICENSE *
* AGREEMENT FOR INFORMATION ON ADDITIONAL RESTRICTIONS. *
********************************************************************/
using System.Collections.Generic;
namespace Framework.Silverlight.Client
{
/// <summary>
/// Provides container class for CxEntityUsage collection.
/// </summary>
public class CxEntityUsageCollection
{
/// <summary>
/// Gets the CxEntityUsage collections.
/// </summary>
private Dictionary<string, CxEntityUsage> m_entitiesMetadata = new Dictionary<string, CxEntityUsage>();
//----------------------------------------------------------------------------
/// <summary>
/// Gets or sets the CxEntityUsage at the specified CxEntityUsage Id.
/// </summary>
/// <param name="Id">The Id of CxEntityUsage</param>
/// <returns>The CxEntityUsage whis the specified Id.</returns>
public CxEntityUsage this [string Id]
{
get{return m_entitiesMetadata.ContainsKey(Id.ToUpper()) ? m_entitiesMetadata[Id.ToUpper()] : null; }
set
{
if(!m_entitiesMetadata.ContainsKey(Id.ToUpper()))
{
m_entitiesMetadata.Add(Id.ToUpper(), value);
}
}
}
}
}