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

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000571 RID: 1393
	public sealed class GetSetAttribute : PropertyAttribute
	{
		// Token: 0x06009B7C RID: 39804 RVA: 0x002814B0 File Offset: 0x0027F6B0
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 147653, RefRangeEnd = 147655, XrefRangeStart = 147653, XrefRangeEnd = 147655, 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: 0x06009B7D RID: 39805 RVA: 0x00281514 File Offset: 0x0027F714
		// 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, 100675490);
		}

		// Token: 0x06009B7E RID: 39806 RVA: 0x0010FC50 File Offset: 0x0010DE50
		public GetSetAttribute(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700345F RID: 13407
		// (get) Token: 0x06009B7F RID: 39807 RVA: 0x00281580 File Offset: 0x0027F780
		// (set) Token: 0x06009B80 RID: 39808 RVA: 0x002815A9 File Offset: 0x0027F7A9
		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: 0x17003460 RID: 13408
		// (get) Token: 0x06009B81 RID: 39809 RVA: 0x002815D0 File Offset: 0x0027F7D0
		// (set) Token: 0x06009B82 RID: 39810 RVA: 0x002815F8 File Offset: 0x0027F7F8
		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: 0x040067DF RID: 26591
		private static readonly IntPtr NativeFieldInfoPtr_name;

		// Token: 0x040067E0 RID: 26592
		private static readonly IntPtr NativeFieldInfoPtr_dirty;

		// Token: 0x040067E1 RID: 26593
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_String_0;
	}
}
