Source/NFX/DataAccess/Distributed/Attributes.cs
/// <summary>
/// Returns DataParcelAttribute for a parcel type. Use Parcel.MetadataAttribute to
///  obtain the attribute instance polymorphically for instance.
///  If parcel is not decorated by the attribute then exception is thrown
/// </summary>
Returns DataParcelAttribute for a parcel type. Use Parcel.MetadataAttribute to
obtain the attribute instance polymorphically for instance.
If parcel is not decorated by the attribute then exception is thrown
Returns DataParcelAttribute for a parcel type . Use Parcel . MetadataAttribute to obtain the attribute instance polymorphically for instance . If parcel is not decorated by the attribute then exception is thrown
public static DataParcelAttribute GetParcelAttr(Type tparcel)
        {
          if (tparcel==null || !typeof(Parcel).IsAssignableFrom(tparcel))
            throw new DistributedDataAccessException(StringConsts.ARGUMENT_ERROR+typeof(DataParcelAttribute).FullName+".GetParcelAttr(tparcel=null|!Parcel)");
          var result = getParcelAttrCore(tparcel);
          if (result==null)
            throw new DistributedDataAccessException(StringConsts.DISTRIBUTED_DATA_PARCEL_MISSING_ATTRIBUTE_ERROR.Args(tparcel));
          return result;
        }
public static DataParcelAttribute GetParcelAttr ( Type tparcel ) { if ( tparcel == null || ! typeof ( Parcel ) . IsAssignableFrom ( tparcel ) ) throw new DistributedDataAccessException ( StringConsts . ARGUMENT_ERROR + typeof ( DataParcelAttribute ) . FullName + " " ) ; var result = getParcelAttrCore ( tparcel ) ; if ( result == null ) throw new DistributedDataAccessException ( StringConsts . DISTRIBUTED_DATA_PARCEL_MISSING_ATTRIBUTE_ERROR . Args ( tparcel ) ) ; return result ; }
Returns DataParcelAttribute for a parcel type.
Returns DataParcelAttribute for a parcel type .
tparcel
Type