示例#1
0
 /// <param name="keyName">Specifies the value of the "name" attribute of the key element.</param>
 /// <param name="minimumVersion">Specifies a single version that this attribute supports.</param>
 /// <param name="versionMode">Optional; with a single version set, it is assumed that this version and later should be supported.<para></para>;
 /// Specifies how the version numbers specified in <see cref="Versions"/> should be interpreted when attempting to match
 /// a class with an RFWS key.</param>
 public RfwsDeserializableKeyAttribute(string keyName, float minimumVersion, RfwsVersionMode versionMode = RfwsVersionMode.SupportedVersionsAndLater)
 {
     Key      = keyName;
     Versions = new float[1] {
         minimumVersion
     };
     VersionMode = versionMode;
 }
示例#2
0
 /// <param name="keyName">Specifies the value of the "name" attribute of the key element.</param>
 public RfwsDeserializableKeyAttribute(string keyName)
 {
     Key = keyName;
     // No version is specfied, so ensure that all versions are supported
     VersionMode = RfwsVersionMode.AllVersions;
 }
示例#3
0
 /// <param name="keyName">Specifies the value of the "name" attribute of the key element.</param>
 /// <param name="versionMode">Specifies how the version numbers specified in <paramref name="versions"/> should
 /// be interpreted when attempting to match a class with an RFWS key.</param>
 /// <param name="versions">Specifies one or more valid versions for this key as defined by the parent section.</param>
 public RfwsDeserializableKeyAttribute(string keyName, RfwsVersionMode versionMode, params float[] versions)
 {
     Key         = keyName;
     Versions    = versions;
     VersionMode = versionMode;
 }