CloneSet798


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
46210.972class_member_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
146187
src/Iesi.Collections/Generic/SynchronizedSet.cs
251190
src/Iesi.Collections/SynchronizedSet.cs
Clone Instance
1
Line Count
46
Source Line
187
Source File
src/Iesi.Collections/Generic/SynchronizedSet.cs

                /// <summary>
                /// The number of elements contained in this collection.
                /// </summary>
                public override sealed int Count
                {
                        get
                        {
                                lock (mSyncRoot)
                                {
                                        return mBasisSet.Count;
                                }
                        }
                }

                /// <summary>
                /// Returns <see langword="true" />, indicating that this object is thread-safe.  The exception to this
                /// is enumeration, which is inherently not thread-safe.  Use the <c>SyncRoot</c> object to
                /// lock this object for the entire duration of the enumeration.
                /// </summary>
                public override sealed bool IsSynchronized
                {
                        get { return true;
                            }
                }

                /// <summary>
                /// Returns an object that can be used to synchronize the <c>Set</c> between threads.
                /// </summary>
                public override sealed object SyncRoot
                {
                        get { return mSyncRoot;
                            }
                }

                /// <summary>
                /// Enumeration is, by definition, not thread-safe.  Use a <c>lock</c> on the <c>SyncRoot</c> 
                /// to synchronize the entire enumeration process.
                /// </summary>
                /// <returns></returns>
                public override sealed IEnumerator<T> GetEnumerator()
                {
                        return mBasisSet.GetEnumerator();
                }

                /// <summary>
                /// Returns a clone of the <c>Set</c> instance.  
                /// </summary>
                /// <returns>A clone of this object.</returns>
                public override object Clone()
                {
                        return new SynchronizedSet((ISet) mBasisSet.Clone());
                }



Clone Instance
2
Line Count
51
Source Line
190
Source File
src/Iesi.Collections/SynchronizedSet.cs

                /// <summary>
                /// The number of elements contained in this collection.
                /// </summary>
                public override sealed int Count
                {
                        get
                        {
                                lock (mSyncRoot)
                                {
                                        return mBasisSet.Count;
                                }
                        }
                }

                /// <summary>
                /// Returns <see langword="true" />, indicating that this object is thread-safe.  The exception to this
                /// is enumeration, which is inherently not thread-safe.  Use the <see cref="SyncRoot" /> object to
                /// lock this object for the entire duration of the enumeration.
                /// </summary>
                public override sealed bool IsSynchronized
                {
                        get { return true;
                            }
                }

                /// <summary>
                /// Returns an object that can be used to synchronize the set between threads.
                /// </summary>
                public override sealed object SyncRoot
                {
                        get { return mSyncRoot;
                            }
                }

                /// <summary>
                /// Returns an enumerator that iterates through the set.
                /// </summary>
                /// <returns>
                /// An <see cref="T:System.Collections.IEnumerator"/> object that can be used to iterate through the set.
                /// </returns>
                /// <remarks>
                /// Enumeration is, by definition, not thread-safe.  Use a <see langword="lock" /> on the <see cref="SyncRoot" /> 
                /// to synchronize the entire enumeration process.
                /// </remarks>
                public override sealed IEnumerator GetEnumerator()
                {
                        return mBasisSet.GetEnumerator();
                }

                /// <summary>
                /// Returns a clone of this instance.  
                /// </summary>
                /// <returns>A clone of this object.</returns>
                public override object Clone()
                {
                        return new SynchronizedSet((ISet) mBasisSet.Clone());
                }



Clone AbstractionParameter Count: 1Parameter Bindings

/// <summary>
/// The number of elements contained in this collection.
/// </summary>
public override sealed int Count
{
   get
   {
      lock (mSyncRoot)
      {
         return mBasisSet.Count;
      }
   }
}

/// <summary>
/// Returns <see langword="true" />, indicating that this object is thread-safe.  The exception to this
/// is enumeration, which is inherently not thread-safe.  Use the <c>SyncRoot</c> object to
/// is enumeration, which is inherently not thread-safe.  Use the <see cref="SyncRoot" /> object to
/// lock this object for the entire duration of the enumeration.
/// </summary>
public override sealed bool IsSynchronized
{
   get
   {
      return true;
   }
}

/// <summary>
/// Returns an object that can be used to synchronize the <c>Set</c> between threads.
/// Returns an object that can be used to synchronize the set between threads.
/// </summary>
public override sealed object SyncRoot
{
   get
   {
      return mSyncRoot;
   }
}

/// <summary>
/// Enumeration is, by definition, not thread-safe.  Use a <c>lock</c> on the <c>SyncRoot</c> 
/// Returns an enumerator that iterates through the set.
/// </summary>
/// <returns>
/// An <see cref="T:System.Collections.IEnumerator"/> object that can be used to iterate through the set.
/// </returns>
/// <remarks>
/// Enumeration is, by definition, not thread-safe.  Use a <see langword="lock" /> on the <see cref="SyncRoot" /> 
/// to synchronize the entire enumeration process.
/// </summary>
/// <returns></returns>
/// </remarks>
public override sealed [[#variable550e6460]]GetEnumerator()
{
   return mBasisSet.GetEnumerator();
}

/// <summary>
/// Returns a clone of the <c>Set</c> instance.  
/// Returns a clone of this instance.  
/// </summary>
/// <returns>A clone of this object.</returns>
public override object Clone()
{
   return new SynchronizedSet((ISet)mBasisSet.Clone());
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#550e6460]]
IEnumerator<T> 
12[[#550e6460]]
IEnumerator