示例#1
0
 /// <summary>
 /// Checks whether <paramref name="localSig"/> contains a <see cref="GenericVar"/> or a
 /// <see cref="GenericMVar"/>.
 /// </summary>
 /// <param name="localSig">Local signature</param>
 /// <returns><c>true</c> if <paramref name="localSig"/> contains a <see cref="GenericVar"/>
 /// or a <see cref="GenericMVar"/>.</returns>
 public static bool ContainsGenericParameter(LocalSig localSig)
 {
     return(new TypeHelper().ContainsGenericParameterInternal(localSig));
 }
示例#2
0
 /// <summary>
 /// Gets the locals
 /// </summary>
 /// <param name="sig">this</param>
 /// <returns>All locals</returns>
 public static IList <TypeSig> GetLocals(this LocalSig sig)
 {
     return(sig == null?ThreadSafeListCreator.Create <TypeSig>() : sig.Locals);
 }
示例#3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="localSig">A locals sig</param>
 public StandAloneSigUser(LocalSig localSig)
 {
     this.signature = localSig;
 }