using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000519 RID: 1305
	public sealed class GetSetAttribute : PropertyAttribute
	{
		// Token: 0x06009329 RID: 37673 RVA: 0x0025E774 File Offset: 0x0025C974
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 145492, RefRangeEnd = 145494, XrefRangeStart = 145492, XrefRangeEnd = 145494, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe GetSetAttribute(string name)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GetSetAttribute.NativeMethodInfoPtr__ctor_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x0600932A RID: 37674 RVA: 0x0025E7D8 File Offset: 0x0025C9D8
		// Note: this type is marked as 'beforefieldinit'.
		static GetSetAttribute()
		{
			Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "GetSetAttribute");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr);
			GetSetAttribute.NativeFieldInfoPtr_name = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr, "name");
			GetSetAttribute.NativeFieldInfoPtr_dirty = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr, "dirty");
			GetSetAttribute.NativeMethodInfoPtr__ctor_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr, 100674777);
		}

		// Token: 0x0600932B RID: 37675 RVA: 0x001CF3DC File Offset: 0x001CD5DC
		public GetSetAttribute(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170031C4 RID: 12740
		// (get) Token: 0x0600932C RID: 37676 RVA: 0x0025E844 File Offset: 0x0025CA44
		// (set) Token: 0x0600932D RID: 37677 RVA: 0x0025E86D File Offset: 0x0025CA6D
		public unsafe string name
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GetSetAttribute.NativeFieldInfoPtr_name);
				return IL2CPP.Il2CppStringToManaged(*intPtr);
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GetSetAttribute.NativeFieldInfoPtr_name), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x170031C5 RID: 12741
		// (get) Token: 0x0600932E RID: 37678 RVA: 0x0025E894 File Offset: 0x0025CA94
		// (set) Token: 0x0600932F RID: 37679 RVA: 0x0025E8BC File Offset: 0x0025CABC
		public unsafe bool dirty
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GetSetAttribute.NativeFieldInfoPtr_dirty);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GetSetAttribute.NativeFieldInfoPtr_dirty)) = value;
			}
		}

		// Token: 0x04006236 RID: 25142
		private static readonly IntPtr NativeFieldInfoPtr_name;

		// Token: 0x04006237 RID: 25143
		private static readonly IntPtr NativeFieldInfoPtr_dirty;

		// Token: 0x04006238 RID: 25144
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_String_0;
	}
}
