diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-16 12:18:36 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-23 15:43:40 -0700 |
| commit | 505fe69d85c90184cd37290ccb0120fec6074c20 (patch) | |
| tree | 685314724a00232c2cad02e73c88214bee25df4f /src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs | |
| parent | ac1400ac5502db2f975e94dc803c155fd6a0a0e0 (diff) | |
| download | wix-505fe69d85c90184cd37290ccb0120fec6074c20.tar.gz wix-505fe69d85c90184cd37290ccb0120fec6074c20.tar.bz2 wix-505fe69d85c90184cd37290ccb0120fec6074c20.zip | |
Remove redundant `?.Value` from strongly typed accesses
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs b/src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs index d2a82f93..ce5ff8be 100644 --- a/src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs +++ b/src/WixToolset.Data/Tuples/WixBundlePayloadTuple.cs | |||
| @@ -81,133 +81,133 @@ namespace WixToolset.Data.Tuples | |||
| 81 | 81 | ||
| 82 | public string WixBundlePayload | 82 | public string WixBundlePayload |
| 83 | { | 83 | { |
| 84 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.WixBundlePayload]?.Value; | 84 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.WixBundlePayload]; |
| 85 | set => this.Set((int)WixBundlePayloadTupleFields.WixBundlePayload, value); | 85 | set => this.Set((int)WixBundlePayloadTupleFields.WixBundlePayload, value); |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | public string Name | 88 | public string Name |
| 89 | { | 89 | { |
| 90 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Name]?.Value; | 90 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Name]; |
| 91 | set => this.Set((int)WixBundlePayloadTupleFields.Name, value); | 91 | set => this.Set((int)WixBundlePayloadTupleFields.Name, value); |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | public string SourceFile | 94 | public string SourceFile |
| 95 | { | 95 | { |
| 96 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.SourceFile]?.Value; | 96 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.SourceFile]; |
| 97 | set => this.Set((int)WixBundlePayloadTupleFields.SourceFile, value); | 97 | set => this.Set((int)WixBundlePayloadTupleFields.SourceFile, value); |
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | public string DownloadUrl | 100 | public string DownloadUrl |
| 101 | { | 101 | { |
| 102 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.DownloadUrl]?.Value; | 102 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.DownloadUrl]; |
| 103 | set => this.Set((int)WixBundlePayloadTupleFields.DownloadUrl, value); | 103 | set => this.Set((int)WixBundlePayloadTupleFields.DownloadUrl, value); |
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | public YesNoDefaultType Compressed | 106 | public YesNoDefaultType Compressed |
| 107 | { | 107 | { |
| 108 | get => Enum.TryParse((string)this.Fields[(int)WixBundlePayloadTupleFields.Compressed]?.Value, true, out YesNoDefaultType value) ? value : YesNoDefaultType.NotSet; | 108 | get => Enum.TryParse((string)this.Fields[(int)WixBundlePayloadTupleFields.Compressed], true, out YesNoDefaultType value) ? value : YesNoDefaultType.NotSet; |
| 109 | set => this.Set((int)WixBundlePayloadTupleFields.Compressed, value.ToString().ToLowerInvariant()); | 109 | set => this.Set((int)WixBundlePayloadTupleFields.Compressed, value.ToString().ToLowerInvariant()); |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | public string UnresolvedSourceFile | 112 | public string UnresolvedSourceFile |
| 113 | { | 113 | { |
| 114 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.UnresolvedSourceFile]?.Value; | 114 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.UnresolvedSourceFile]; |
| 115 | set => this.Set((int)WixBundlePayloadTupleFields.UnresolvedSourceFile, value); | 115 | set => this.Set((int)WixBundlePayloadTupleFields.UnresolvedSourceFile, value); |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | public string DisplayName | 118 | public string DisplayName |
| 119 | { | 119 | { |
| 120 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.DisplayName]?.Value; | 120 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.DisplayName]; |
| 121 | set => this.Set((int)WixBundlePayloadTupleFields.DisplayName, value); | 121 | set => this.Set((int)WixBundlePayloadTupleFields.DisplayName, value); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | public string Description | 124 | public string Description |
| 125 | { | 125 | { |
| 126 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Description]?.Value; | 126 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Description]; |
| 127 | set => this.Set((int)WixBundlePayloadTupleFields.Description, value); | 127 | set => this.Set((int)WixBundlePayloadTupleFields.Description, value); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | public bool EnableSignatureValidation | 130 | public bool EnableSignatureValidation |
| 131 | { | 131 | { |
| 132 | get => (bool)this.Fields[(int)WixBundlePayloadTupleFields.EnableSignatureValidation]?.Value; | 132 | get => (bool)this.Fields[(int)WixBundlePayloadTupleFields.EnableSignatureValidation]; |
| 133 | set => this.Set((int)WixBundlePayloadTupleFields.EnableSignatureValidation, value); | 133 | set => this.Set((int)WixBundlePayloadTupleFields.EnableSignatureValidation, value); |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | public int FileSize | 136 | public int FileSize |
| 137 | { | 137 | { |
| 138 | get => (int)this.Fields[(int)WixBundlePayloadTupleFields.FileSize]?.Value; | 138 | get => (int)this.Fields[(int)WixBundlePayloadTupleFields.FileSize]; |
| 139 | set => this.Set((int)WixBundlePayloadTupleFields.FileSize, value); | 139 | set => this.Set((int)WixBundlePayloadTupleFields.FileSize, value); |
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | public string Version | 142 | public string Version |
| 143 | { | 143 | { |
| 144 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Version]?.Value; | 144 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Version]; |
| 145 | set => this.Set((int)WixBundlePayloadTupleFields.Version, value); | 145 | set => this.Set((int)WixBundlePayloadTupleFields.Version, value); |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | public string Hash | 148 | public string Hash |
| 149 | { | 149 | { |
| 150 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Hash]?.Value; | 150 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Hash]; |
| 151 | set => this.Set((int)WixBundlePayloadTupleFields.Hash, value); | 151 | set => this.Set((int)WixBundlePayloadTupleFields.Hash, value); |
| 152 | } | 152 | } |
| 153 | 153 | ||
| 154 | public string PublicKey | 154 | public string PublicKey |
| 155 | { | 155 | { |
| 156 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.PublicKey]?.Value; | 156 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.PublicKey]; |
| 157 | set => this.Set((int)WixBundlePayloadTupleFields.PublicKey, value); | 157 | set => this.Set((int)WixBundlePayloadTupleFields.PublicKey, value); |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | public string Thumbprint | 160 | public string Thumbprint |
| 161 | { | 161 | { |
| 162 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Thumbprint]?.Value; | 162 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Thumbprint]; |
| 163 | set => this.Set((int)WixBundlePayloadTupleFields.Thumbprint, value); | 163 | set => this.Set((int)WixBundlePayloadTupleFields.Thumbprint, value); |
| 164 | } | 164 | } |
| 165 | 165 | ||
| 166 | public string Catalog_ | 166 | public string Catalog_ |
| 167 | { | 167 | { |
| 168 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Catalog_]?.Value; | 168 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Catalog_]; |
| 169 | set => this.Set((int)WixBundlePayloadTupleFields.Catalog_, value); | 169 | set => this.Set((int)WixBundlePayloadTupleFields.Catalog_, value); |
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | public string Container_ | 172 | public string Container_ |
| 173 | { | 173 | { |
| 174 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Container_]?.Value; | 174 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Container_]; |
| 175 | set => this.Set((int)WixBundlePayloadTupleFields.Container_, value); | 175 | set => this.Set((int)WixBundlePayloadTupleFields.Container_, value); |
| 176 | } | 176 | } |
| 177 | 177 | ||
| 178 | public string Package | 178 | public string Package |
| 179 | { | 179 | { |
| 180 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Package]?.Value; | 180 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Package]; |
| 181 | set => this.Set((int)WixBundlePayloadTupleFields.Package, value); | 181 | set => this.Set((int)WixBundlePayloadTupleFields.Package, value); |
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | public bool ContentFile | 184 | public bool ContentFile |
| 185 | { | 185 | { |
| 186 | get => (bool)this.Fields[(int)WixBundlePayloadTupleFields.ContentFile]?.Value; | 186 | get => (bool)this.Fields[(int)WixBundlePayloadTupleFields.ContentFile]; |
| 187 | set => this.Set((int)WixBundlePayloadTupleFields.ContentFile, value); | 187 | set => this.Set((int)WixBundlePayloadTupleFields.ContentFile, value); |
| 188 | } | 188 | } |
| 189 | 189 | ||
| 190 | public string EmbeddedId | 190 | public string EmbeddedId |
| 191 | { | 191 | { |
| 192 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.EmbeddedId]?.Value; | 192 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.EmbeddedId]; |
| 193 | set => this.Set((int)WixBundlePayloadTupleFields.EmbeddedId, value); | 193 | set => this.Set((int)WixBundlePayloadTupleFields.EmbeddedId, value); |
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | public int LayoutOnly | 196 | public int LayoutOnly |
| 197 | { | 197 | { |
| 198 | get => (int)this.Fields[(int)WixBundlePayloadTupleFields.LayoutOnly]?.Value; | 198 | get => (int)this.Fields[(int)WixBundlePayloadTupleFields.LayoutOnly]; |
| 199 | set => this.Set((int)WixBundlePayloadTupleFields.LayoutOnly, value); | 199 | set => this.Set((int)WixBundlePayloadTupleFields.LayoutOnly, value); |
| 200 | } | 200 | } |
| 201 | 201 | ||
| 202 | public int Packaging | 202 | public int Packaging |
| 203 | { | 203 | { |
| 204 | get => (int)this.Fields[(int)WixBundlePayloadTupleFields.Packaging]?.Value; | 204 | get => (int)this.Fields[(int)WixBundlePayloadTupleFields.Packaging]; |
| 205 | set => this.Set((int)WixBundlePayloadTupleFields.Packaging, value); | 205 | set => this.Set((int)WixBundlePayloadTupleFields.Packaging, value); |
| 206 | } | 206 | } |
| 207 | 207 | ||
| 208 | public string ParentPackagePayload_ | 208 | public string ParentPackagePayload_ |
| 209 | { | 209 | { |
| 210 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.ParentPackagePayload_]?.Value; | 210 | get => (string)this.Fields[(int)WixBundlePayloadTupleFields.ParentPackagePayload_]; |
| 211 | set => this.Set((int)WixBundlePayloadTupleFields.ParentPackagePayload_, value); | 211 | set => this.Set((int)WixBundlePayloadTupleFields.ParentPackagePayload_, value); |
| 212 | } | 212 | } |
| 213 | } | 213 | } |
