Confuser.Core/Annotations.cs
/// <summary>
///     Sets an annotation on the specified object.
/// </summary>
/// <typeparam name="TValue">The type of the value.</typeparam>
/// <param name="obj">The object.</param>
/// <param name="key">The key of annotation.</param>
/// <param name="value">The value of annotation.</param>
/// <exception cref="T:System.ArgumentNullException">
///     <paramref name="obj" /> or <paramref name="key" /> is <c>null</c>.
/// </exception>
// Token: 0x06000004 RID: 4 RVA: 0x00002294 File Offset: 0x00000494
Sets an annotation on the specified object.
Sets an annotation on the specified object .
public void Set<TValue>(object obj, object key, TValue value)
		{
			if (obj == null)
			{
				throw new ArgumentNullException("obj");
			}
			if (key == null)
			{
				throw new ArgumentNullException("key");
			}
			ListDictionary objAnno;
			if (!this.annotations.TryGetValue(obj, out objAnno))
			{
				objAnno = (this.annotations[new Annotations.WeakReferenceKey(obj)] = new ListDictionary());
			}
			objAnno[key] = value;
		}
public void Set < TValue > ( object obj , object key , TValue value ) { if ( obj == null ) { throw new ArgumentNullException ( " " ) ; } if ( key == null ) { throw new ArgumentNullException ( " " ) ; } ListDictionary objAnno ; if ( ! this . annotations . TryGetValue ( obj , out objAnno ) ) { objAnno = ( this . annotations [ new Annotations . WeakReferenceKey ( obj ) ] = new ListDictionary ( ) ) ; } objAnno [ key ] = value ; }
Sets an annotation on the specified object.
Sets an annotation on the specified object .
None
obj
object
None
key
object
The key of annotation.
The key of annotation .
value
TValue
The value of annotation.
The value of annotation .
typeparam
The type of the value.
The type of the value .