Mono.Cecil.Fluent.CecilExtensions.IsVoid C# (CSharp) Method

IsVoid() public static method

public static IsVoid ( this type ) : bool
type this
return bool
        public static bool IsVoid(this TypeReference type)
        {
            while (type is OptionalModifierType || type is RequiredModifierType)
                type = ((TypeSpecification)type).ElementType;
            return type.MetadataType == MetadataType.Void;
        }
    }