/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.CustomAttributeTypedArgument" /> class with the specified value.</summary> /// <param name="value">The value of the custom attribute argument.</param> /// <exception cref="T:System.ArgumentNullException"> /// <paramref name="value" /> is <see langword="null" />.</exception> // Token: 0x0600443B RID: 17467 RVA: 0x000FA689 File Offset: 0x000F8889 public CustomAttributeTypedArgument(object value) { if (value == null) { throw new ArgumentNullException("value"); } this.m_value = CustomAttributeTypedArgument.CanonicalizeValue(value); this.m_argumentType = value.GetType(); }
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.CustomAttributeTypedArgument" /> class with the specified type and value.</summary> /// <param name="argumentType">The type of the custom attribute argument.</param> /// <param name="value">The value of the custom attribute argument.</param> /// <exception cref="T:System.ArgumentNullException"> /// <paramref name="argumentType" /> is <see langword="null" />.</exception> // Token: 0x0600443A RID: 17466 RVA: 0x000FA65A File Offset: 0x000F885A public CustomAttributeTypedArgument(Type argumentType, object value) { if (argumentType == null) { throw new ArgumentNullException("argumentType"); } this.m_value = ((value == null) ? null : CustomAttributeTypedArgument.CanonicalizeValue(value)); this.m_argumentType = argumentType; }