Exemple #1
0
        public override Guid GetCustomTypeInfo(out ReadOnlyCollection <byte>?payload)
        {
            payload = _method.GetCustomTypeInfoPayload();

            return((payload == null) ? default : CustomTypeInfo.PayloadTypeId);
        }
 /// <remarks>
 /// The custom type info payload depends on the return type, which is not available when
 /// <see cref="CSharpLocalAndMethod"/> is created.
 /// </remarks>
 public override CustomTypeInfo GetCustomTypeInfo() =>
 new CustomTypeInfo(DynamicFlagsCustomTypeInfo.PayloadTypeId, _method.GetCustomTypeInfoPayload());