本文整理汇总了C#中ParameterAttributes类的典型用法代码示例。如果您正苦于以下问题:C# ParameterAttributes类的具体用法?C# ParameterAttributes怎么用?C# ParameterAttributes使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ParameterAttributes类属于命名空间,在下文中一共展示了ParameterAttributes类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RuntimeParameter
/// <summary>
/// Initializes a new instance of the <see cref="RuntimeParameter"/> class.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="position">The position.</param>
/// <param name="attributes">The attributes.</param>
public RuntimeParameter(string name, int position, ParameterAttributes attributes)
{
this.token = (HeapIndexToken)0;
this.attributes = attributes;
this.name = name;
this.position = position;
}
示例2: ParameterInfoMirror
internal ParameterInfoMirror (MethodMirror method, int pos, TypeMirror type, string name, ParameterAttributes attrs) : base (method.VirtualMachine, 0) {
this.method = method;
this.pos = pos;
this.type = type;
this.name = name;
this.attrs = attrs;
}
示例3: RoutineParameter
public RoutineParameter(string name, SqlType type, ParameterDirection direction, ParameterAttributes attributes)
{
Attributes = attributes;
Direction = direction;
Type = type;
Name = name;
}
示例4: DefineParameter
/*******************
*
* This is setting the parameter information
*
********************/
/// <include file='doc\ConstructorBuilder.uex' path='docs/doc[@for="ConstructorBuilder.DefineParameter"]/*' />
public ParameterBuilder DefineParameter(
int iSequence,
ParameterAttributes attributes,
String strParamName) // can be NULL string
{
return m_methodBuilder.DefineParameter(iSequence, attributes, strParamName);
}
示例5: ParameterBuilder
internal ParameterBuilder(ModuleBuilder moduleBuilder, int sequence, ParameterAttributes attribs, string name)
{
this.moduleBuilder = moduleBuilder;
this.flags = (short)attribs;
this.sequence = (short)sequence;
this.nameIndex = name == null ? 0 : moduleBuilder.Strings.Add(name);
this.name = name;
}
示例6: ParameterInfo
internal ParameterInfo(MethodInfo owner, string name, Type parameterType, int position)
{
this.MemberImpl = owner;
this.NameImpl = name;
this.ClassImpl = parameterType;
this.PositionImpl = position;
this.AttrsImpl = ParameterAttributes.None;
}
示例7: ParameterStructure
public ParameterStructure(string name, ParameterAttributes attr, TypeStructure pt, CilStructure def)
{
Name = name;
Attributes = attr;
ParamType = pt;
DefaultValue = def;
AppendChild(DefaultValue);
}
示例8: ParameterBuilder
internal ParameterBuilder(MethodBuilder methodBuilder, int sequence, ParameterAttributes attributes, string strParamName)
{
this.m_iPosition = sequence;
this.m_strParamName = strParamName;
this.m_methodBuilder = methodBuilder;
this.m_strParamName = strParamName;
this.m_attributes = attributes;
this.m_pdToken = new ParameterToken(TypeBuilder.SetParamInfo(this.m_methodBuilder.GetModuleBuilder().GetNativeHandle(), this.m_methodBuilder.GetToken().Token, sequence, attributes, strParamName));
}
示例9: Parameter
public ApiMethodBuilder Parameter(Type type, string name = "param", ParameterAttributes attributes = ParameterAttributes.None)
{
_parameters.Add(new ApiParameter
{
Type = type,
Name = name,
Attributes = attributes
});
return this;
}
示例10: ParameterBuilder
#pragma warning restore 169, 414
internal ParameterBuilder (MethodBase mb, int pos, ParameterAttributes attributes, string strParamName) {
name = strParamName;
position = pos;
attrs = attributes;
methodb = mb;
if (mb is DynamicMethod)
table_idx = 0;
else
table_idx = mb.get_next_table_index (this, 0x08, true);
}
示例11: StubParameterInfo
public StubParameterInfo(int position, Type/*!*/ type, ParameterAttributes attributes, string name)
{
Debug.Assert(type != null);
#if !SILVERLIGHT
this.ClassImpl = type;
this.AttrsImpl = attributes;
this.NameImpl = name;
this.PositionImpl = position;
#endif
}
示例12: DefaultParameter
public ApiMethodBuilder DefaultParameter(Type type, object defaultValue, string name = "param", ParameterAttributes attributes = ParameterAttributes.Optional | ParameterAttributes.HasDefault)
{
_parameters.Add(new ApiParameter
{
Type = type,
Name = name,
DefaultValue = defaultValue,
Attributes = attributes
});
return this;
}
示例13: ParameterInfo
private ParameterInfo(Signature signature, MetadataImport scope, int tkParamDef, int position, ParameterAttributes attributes, MemberInfo member)
{
this.PositionImpl = position;
this.MemberImpl = member;
this.m_signature = signature;
this.m_tkParamDef = System.Reflection.MetadataToken.IsNullToken(tkParamDef) ? 0x8000000 : tkParamDef;
this.m_scope = scope;
this.AttrsImpl = attributes;
this.ClassImpl = null;
this.NameImpl = null;
}
示例14: RoutineParameter
public RoutineParameter(string name, SqlType type, ParameterDirection direction, ParameterAttributes attributes)
{
if (String.IsNullOrEmpty(name))
throw new ArgumentNullException("name");
if (type == null)
throw new ArgumentNullException("type");
Attributes = attributes;
Direction = direction;
Type = type;
Name = name;
}
示例15: ParameterInfo
// There is a single constructor that is used to create a Parameter. This is
// only called from native so it can be private.
/// <include file='doc\ParameterInfo.uex' path='docs/doc[@for="ParameterInfo.ParameterInfo1"]/*' />
internal ParameterInfo(Type theClass, String name, int position, ParameterAttributes attributes)
{
ClassImpl = theClass;
NameImpl = name;
PositionImpl = position;
AttrsImpl = attributes;
DefaultValueImpl = DBNull.Value;
MemberImpl = null;
_importer = (IntPtr)0;
_token = 0;
}